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
Related
I cant use WebView, please help me
I will try my best & I hope I can solve it here.
check out official release of YouTube Android Player API, which plays yt videos natively, without any web-side
and if you want/need web player, but you can't use WebView - you may implement "FirefoxView", web engine used by Mozilla in their Android software, not related to Chromium at all, called GeckoView
You can use lib from opensource: link
I am new to work with Google IMA3 SDK for displaying video ads througt DFP, I just went through Quick start IMA android , it says I can use Google Media Framework (GMF) OR Android Videoview
Android Videoview
This is not customised to work with Google IMA3 , as far as I know , I have to do extra work with is player for pre-roll , mid-roll & post-roll concept.
Google Media Framework (GMF)
The Google Media Framework (GMF) is a lightweight media player designed to make video playback and integration with the Google IMA SDK on Android easier. BUT this is still in beta version . There are still quite OPEN ISSUES
This IMA3: Video technology partners , in this link they say I can use any of them , Are they OPEN SOURCE.
I am still confused what to do
I want to implement a simple livestream to my iOS and android apps.
I can use youtube.com to record the livestream, and broadcast it as a regular video in my apps. I don't want to implement heavy SDKs or build a platform to do so.
What is the best choice?
Have come across - kickflip.io, livestreamsdk.com, ustream.tv, etc.
With the first 2, you have to setup the whole thing. While I was thinking if I can simply embed like a Youtube player which will show the broadcast.
The YouTube Live Streaming API lets you create, update and manage live events on YouTube. The Live Streaming API is actually comprised of components of the YouTube Data API and the YouTube Content ID API.
Before you start:
You need a Google Account to access the Google Developers Console, request an API key and register your app.
Register your app https://developers.google.com/youtube/registering_an_application with Google so that it can submit API request.
After registering your app, select the YouTube Data API as one of the services that your app uses.
Here's a demo app which shows how to use liveBroadcasts, liveBroadcast is a resource represents an event that will streamed via live video on YouTube:
https://github.com/youtube/api-samples/blob/master/python/create_broadcast.py
Made a way out using Youtube Player. Tried both using youtube embed in webview and youtube player using SDK, and it worked just fine. Some manual controls were required to be added to better handle for the live streaming purpose, but the rest worked smooth.
Used Wirecast for streaming the media (broadcasting) to Youtube, and youtube's rtmp handles the rest nearly.
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/.