Is it possible to cast a video from YouTube player SDK form android?
Please let me know steps to do it.
Refer the below link for you tube integration
Open Chromecast youtube video from android application
https://github.com/jlmcdonald/yt-chromecast-demo
I endup creating an webapp with iframe for chromecast device
And for android app, sending message like "load,play,pause" by alerting code in https://github.com/googlecast/CastHelloText-android
Related
I am developing an app for a client to get all the videos from a YouTube channel and I paint all of these videos into a table, showing the thumbnail and the description, so that when the user tap the row, the video will be played.
I am using the Titanium.Platform.openURL(...) but the client wants
the video to open inside the app like Twitter and other apps.
Is there any module to do it?
Any help would be appreciated.
iPhone | Android
Titanium Appcelerator SDK: 7.1.0
Thanks in advance.
Try the examples in this post: Embeded Youtube video to WebView (Appcelerator) doesn't show (black screen)
They use a webview solution. But you can also try to use Hyperloop and implement e.g. https://github.com/PierfrancescoSoffritti/Android-YouTube-Player on Android.
Yes, for iOS you can play in WebView and for Android there is a immersive module present.
I want to play youtube videos in my Android TV APP.
I am also working on a Android phone/tablet APP and I was able to use Youtube Android API to play videos.
But when I try to use the same API on Android TV it gives me an error ("This app won't work unless you update the YouTube"), but my youtube is updated.
I found this issue in the YouTube Android Player API issue tracker, it is the same problem that I am facing here, so I want to know if someone have a solution, or know another version of the API that may work. I am using YouTube Player Android API v1.2.2.
I know that I can open youtube via Intent, but I need to use the YouTube API to show videos.
The YouTube playback API may not work on Android TV, but you can always implement your own playing mechanism in-app. Take a look at YouTube's web player API: https://developers.google.com/youtube/iframe_api_reference
You can load a WebView in your app and from there add an iframe and JS logic to integrate with your controller.
To interface between your JS and Java code, take a look at a project like this: https://github.com/Fleker/WebGameBridge.js for how to use the WebView APIs.
In terms of getting data, there are also web APIs for this that you can access through your WebView.
I've created YoutubeTV library, a wrapper for YouTube Player API Reference for iframe Embeds
It provides a YoutubeTvView that embeds a Webview with Youtube iframe with all Javascript API available from this view.
Also, YoutubeTvFragment holds a YoutubeTvView with a media control bar (PlaybackOverlayFragment)
I have the same understanding with you. YouTube API works only smartphone YouTube app and not for Android TV YouTube app.
I think if you are thinking of publishing Android TV app, you cannot use YouTube Player Android API except Intent for now. Because you should expect user installs Android TV YouTube app.
For reference,
Current behavior of YouTube Android Player API is summarized here.
Source code which uses YouTube Intent to play YouTube video in Android TV.
I have uploaded a video to azure media services which I am able to view in browser.
Now I want show this video in my android app and should be able to programmatically..
Pause
Play
Jump to particular time.
Will I be able to do this on android? Is there any sample code that can help me in this regard?
We could deliver either HLS v3 or v4 to Android devices:http://mingfeiy.com/android-hls-playback-via-azure-media-services. You can use Android Native SDK to playback the HLS steam.We don't offer an Android SDK. If you are looking for a web player, you can try our Azure Media Player: http://azure.microsoft.com/blog/2015/04/15/announcing-azure-media-player/.
I have Styled Media Receiver app on the web side, and I need to cast Youtube video from my Android sender app, by providing a link to it. If I cast a mp4 file, it works, but with youtube link - no.
I saw there was an ability to do casting with the previous SDK.. is there any chance to cast youtube video with the newest SDK?
No, with the current official SDK, you cannot do that.
Is it possible to setup the android app I am working on to open the youtube app and or navtive browser when clicked on anywhere in the app?
Thank you
Read up on Intents, it's Chapter 1. You can launch any app like you tube or browser.