Youtube api and Samsung SmartTV App resolutions

5.9k views Asked by At

im working on Smart TV app for Samsung which should use youtube api to play videos. Embedded videos will work only when app resolution and yt player size are 960x540 or below, if I set higher resolution (1280x720 or 1920x1080) player stucks, behaves really slow, and videos will buffer infinitely.

Has anyone succeeded in embedding yt videos with higher resolution player? Thx in advance.

3

There are 3 answers

1
zoroz On BEST ANSWER

Thx all for answering, in the end I used different approach which showed like best solution.

I used 720p resolution, and youtube cue video functionality. Basically i cued video, and on "videoCued" event i called "playVideo" method.

This allowed player to get ready and initialize before playing video.

0
imkrisna On

recently i found this case. The youtube apps working great on 720p resolution if the video length is below 10min, but longer than that for example 30min the player will stuck just like as you said.

When changing the app resolution to 540p the youtube player working great again for all videos. I suppose the youtube is using progressive download on their player and Smart TV storage itself is not enough to prepare the long video storage space with 720p resolution rendering.

The conclusion is when using flash player/youtube in apps the best at using 540p app resolution.

0
Ivan Solntsev On

Video player work in FullHD resolution in fullscreen regardless of widget resolution.

If you have troubles with buffering, check your connection speed. Try play file from local network to check that selected resolution and codecs hadled well by TV.