Can we use Android YouTube API to develop Google TV applications? -


i have develop android application using youtube android api. need application able run in google tv devices. application not work in google tv device/emulator. try sample application comes youtube library. not working in google tv.

is youtube android api compatible google tv ? if why not working in google tv ?

my logcat out put says media player error during playback.

youtubeandroidplayerapi : mediaplayer error during playback [what=1, extra=-2147483648] youtubeandroidplayerapi : retrying mediaplayer error [retry=3, max=3] awesomeplayer           : setdatasource_l('http://redirector.c.youtube.com/videoplayback?id=7b25376d1cb6c78e&itag=22&source=youtube&uaopt=no-save&upn=drkvzj2mxoc&el=videos&devkey=awmuqlksgtkk9uumjngotugo88hsqjpe1a8d1gxqngdm&app=youtube_gdata&ip=0.0.0.0&ipbits=0&expire=1367719435&sparams=id,itag,source,uaopt,upn,ip,ipbits,expire&signature=5ac58e1e3d89eb15227c062654cba43017c92f4a.46152aca146cc324100bbed7dc27c8c234614d35&key=yta2&dnc=1') nuhttpdatasource        : connect redirector.c.youtube.com:80/videoplayback?id=7b25376d1cb6c78e&itag=22&source=youtube&uaopt=no-save&upn=drkvzj2mxoc&el=videos&devkey=awmuqlksgtkk9uumjngotugo88hsqjpe1a8d1gxqngdm&app=youtube_gdata&ip=0.0.0.0&ipbits=0&expire=1367719435&sparams=id,itag,source,uaopt,upn,ip,ipbits,expire&signature=5ac58e1e3d89eb15227c062654cba43017c92f4a.46152aca146cc324100bbed7dc27c8c234614d35&key=yta2&dnc=1 @0 awesomeplayer           : reset awesomeplayer           : cancel player events audioservice            : audiofocus  abandonaudiofocus() android.media.audiomanager@a6d87f98com.google.android.youtube.api.t@a6d7b380 awesomeplayer           : video decoder shutdown completed 

fyi : awesomeplayer not tag defined me.

yes, work on google tv, need have version 1.6 (4845) of youtube app (or higher).

all of youtube api sample apps work on gtv: https://developers.google.com/youtube/android/player/sample-applications

you can play hd videos using youtube api looks great on tv.

i have open-sourced gtv app uses youtube api: https://github.com/entertailion/video-wall

the app shows video wall of thumbnail images videos in youtube playlist. 1 of thumbnails flip on , begin playing video playlist, play until finishes. after that, video replaced thumnbail, , different thumbnail flip on play video.


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -