I want to play youtube videos in my android TV application, have tried youtube player api, but it wont work in TVs not having youtube app. I tried using webview, it is not playing the video(I am using Android TV API Level 25).
I am open to use any video player.
Please can anyone suggest me a good way of streaming youtube videos on Android TV?
try this library it's working fine
Related
I am working on Android TV app and have to stream some videos. I am facing problem in playing m3u8 videos in videoview. Videoview is not working fine in all the devices. So I tried GoogleExo player and Vitamio - it seems like both does not suppport m3u8 videos.
Does anyone know how to play m3u8 videos on android?
By m3u8 if you mean HLS videos, Google's ExoPlayer supports that. Also if you don't want to use ExoPlayer, android mediaplayer api has limited support for HLS stream from android 4.0.
I would suggest if you can spend some money on purchasing some thirdparty players, they'll give the best playabck experience and features. Refer the following players
NexStreaming
Akamai
Brightcove
JW Player - Its built on top of exoplayer
I am using youtube api for android to display youtube videos in my app. Normal videos stream very well, but youtube live streaming videos get stuck after few minutes in certain hardwares. These live streaming videos even got stuck when played usiing youtube app within these devices, while were playing completely fine using chrome browser.
Once initialized, I use the following line to play any youtube video:
youTubePlayer.loadVideo(id);
My queries are the following ?
What streaming protocol does youtube use for live streaming within Android ? Is it different with chrome browser and youtube app ?
What can be done to enable my app with seamless youtube live streaming ?
P.S. All my devices I have tested use Android version 4.4+
I am developing a Android app that plays advertising videos. All the videos are in WMV format and I tested it in Android 4.2 and it worked great. The client tried to execute the app it in a 4.1 device and it didn't work. It only says "Can't play this video" and crashes. We tried to play a WMV video with the native Video player in the 4.1 device and it played as expected. Why, in the same device, the VideoView can't play a video that the native Video player can? I also tried with another 4.1 device and a 4.1 emulator and I got the same problem.
Hi the WMV is not supported before 4.2 you can refer to the official documentation of google
http://developer.android.com
I am working on android > API 8 , the problem is I would like to play the youtube video without showing the youtube logo on either info bar, control bar or bottom right corner.
I tried using webview and the embedd link , it turnes out there is logo on it even using modestbranding. Then I tried using video view, it is actually with the logo but the problem is the the rtsp video is very low quality
How to fix the problem? Thanks
Check the Android Youtube API!
The YouTube Android Player API enables you to incorporate video playback functionality into your Android applications. The API defines methods for loading and playing YouTube videos (and playlists) and for customizing and controlling the video playback experience.
I am novice to android. I am trying a application in which I try to open you-tube embed videos in web-view. But firstly , I try to open any youtube video from youtube site itself in browser of emulator then it fails to open video and showing Alert-dialogue with title Cannot play video and msg Sorry,this video cannot be played. Is there any requirement of settings in emulator. Anyone has idea.
Flash player works in android only after version 2.3... Better update your device version to 2.3 or later. Then you can play youtube videos in your emulator.