I have been searching the forum to find out what the current methods are for playing YouTube videos. It seems like thee is a choice between WebView, Erel's YouTube Player and Exoplayer.
Which method is currently the best approach for playing YouTube Videos?
As far as I remember it is difficult if not impossible to get the direct link which is required for playing the video with ExoPlayer.
YouTube library is probably the best option.
As far as I remember it is difficult if not impossible to get the direct link which is required for playing the video with ExoPlayer.
YouTube library is probably the best option.
There is no similar library in B4i. You should use WKWebView for this. The difference is that WKWebView will behave exactly the same on all devices (this is not the case with Android WebView).
There is no similar library in B4i. You should use WKWebView for this. The difference is that WKWebView will behave exactly the same on all devices (this is not the case with Android WebView).
Thx Valentino, this indeed is a cause for concern as that was the approach I settled on. I just wish there were simple ways to do basic things, without Google making our lives more difficult. I will look up your solution in the link.
Thx Valentino, this indeed is a cause for concern as that was the approach I settled on. I just wish there were simple ways to do basic things, without Google making our lives more difficult. I will look up your solution in the link.
Ok, I remember this one now. It lists videos but does not play them. The ideal solution which I have not seen is a simple embedded video player that can play from a YouTube url like the embedded YouTube in Webview solution.
Ok, I remember this one now. It lists videos but does not play them. The ideal solution which I have not seen is a simple embedded video player that can play from a YouTube url like the embedded YouTube in Webview solution.
I see. I did notice that your video is larger than the screen which may affect usability. I managed to get mine fitting the screen, but it used some complicated javascript which basically detected the screen width and then adjusted the size of the video accordingly.
I wonder if the video size issue may have been Google's reason for removing the app, or is it just they want developers to use the Android API?