I built a website that uses Video.JS as a player now I make an apk from that web using Android web view, but I can't play videos.
I understand that there is the problem with video tag on android web view.
Related
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 want to play videos in my app using the Cordova plugin, which is available for both the iOS and Android platforms. I am aware of the HTML5 video tag but wish to use plugins. I have tried this plugin and have successfully used it. However, it only plays videos from a web URL, and I wish to play videos from my local file system.
Can anyone tell me how to do this?
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 Would like to know if all android-powered devices have an embeded youtube video player because i would like to play youtube videos from webview using javascript interface by passing vnd intent,i got difficult playing youtube videos inside my webview .
Thank you
For apps which have Google Play Services they can support the youTube app, so you can instantiate it from your app using the new APIs - https://developers.google.com/youtube/android/player/
There is also an iFrame API (requires HTML5 support) https://developers.google.com/youtube/iframe_api_reference and a Javascript API (requires the browser supports Flash) https://developers.google.com/youtube/js_api_reference
I Am working on android google tv project. In My project i want to play video from html embed code show below:-
<embed type="application/x-shockwave-flash" src="http://www.desifreetv.com/channels/tomandjerry.swf" file="http://desifreetv.com/locked/xml-files/tomandjerry.xml" width="707" height="483" style="undefined" id="mpl" name="mpl" quality="high" allowfullscreen="true" wmode="opaque" menu="false">
how i play
If you have a native app and plan to use a WebView with the above snippet embedded in it, you will run into issues since WebView doesn't support flash. If your app is a browser based app, flash is supported so you should be able to embed it in your web page. Alternatively, see if the provider of that content has a differently formatted videos (say, mp4 or so) and then you can use the native players.