YouTube Android Player API how to enable captions? - java

I have a little android app that uses the YouTube Android Player API
for playing youtube videos and I would like to enable the captions from the youtube video. I don't see anything in the api that could help me achieve this. Even with close captioning enabled in system settings the captions are not displayed.Is it possible to display the captions?

Just enable them in Youtube Player within your app, by pressing the CC button.

Related

How to overlay Google Play app page on the top of my app?

I want to show Google play app page on the top of my app but cannot find a way. Google play app linking page does not say anything about it. Linking to Google Play.
I have not found anything like this on Google Play Core library.
Few suggested me, it is just a custom bottom sheet.
But check the images below.
Image 1 : Google app on Android showing BBC app's google play page on the top of GOOGLE app.
Image 2: Facebook in app ad shows advertiser's Google Play page after clicking the ad.
How can I implement it ?

Play a video on Android full screen from website link

I have a website which lists the links to videos. Clicking on these links will play video on browser.
Now, I am planning to develop an Android app for my website. The way I am going to do is just framing this website inside Android app.
Now, when I click on these links inside the Android app, the video is getting played as like it plays on the browser. But I need it in a way such that when a user clicks on these links the video should play automatically on full screen landscape mode.
What modification should be done in the coding to play this video on full screen upon clicking on the video link?
Thanks

Youtube videos in webView using Youtube API

My current problem: I am using a webView to show web content in my app. In one link (which I need to show in webView) there is nothing more but just 3 youtube videos from 1 channel.
Question: How to use youtube API that it would automatically detect these videos and play correctly when the mentioned link is being opened?
I tried to use only webView to show youtube content but I am facing many problems with it - youtube video sometimes doesn't play at all, there is problems with Android version compatibility, etc. And as I read in general in forums - webView itself is not recommended to be used as html5 youtube video player. Most people suggests to use "new Youtube API". So how exactly implement this youtube API in my case?
Any examples? Suggestions?
Google release Youtube Android player api so that you can import this library to use
it's a good video player for watch YouTube video and playlist
YouTube Android Player API

JavaFX 2 embed YouTube video

Is there a way to embed a YouTube video with JavaFX 2 without a WebView? And if using a WebView is the only viable option, how can I detect when a video started and ended?
Is there a way to embed a YouTube video with JavaFX 2 without a WebView?
Technically, probably yes, but legally no as that would require using a video player other than the YouTube video player, which would violate YouTube's current terms of service.
If instead, you embed a player in JavaFX using a WebView to display YouTube's HTML5 embedded player, then that is ok with the YouTube terms of service agreement.
how can I detect when a video started and ended?
Use the YouTube JavaScript API to monitor playback status.

Any options to build your own java based youtube html5 video player for android?

I need to build a Video Player in android that can play
youtube HTML5 videos (www.youtube.com/html5) also be able
to embed the player within an android app I build.
The tablets I am building this app for cannot use flash at all
(this is why I need to build my own).
This would end up being a kids app, so I really only want to give
them 4 options on the player: play, reply, pause, exit
I am still a little confused as to would I be playing this embed
video in my custom app (with custom video player i make) using rtsp://
or a m.youtube.com H.264
Thanks in advance, all help appreciated
These projects from GIthub might get you started.
vivdub / AndroidMediaplayer
joelbinn / media-player
lxz2003 / mediaplayer

Categories