I want to just run a sample samsung smart tv application that show a youtube video, I tried everything I found in the internet and nothing worked, I'm searching for a way since a week and still didn't find, I always were seeing [[missing plug in]] on a white or black screen !!
I'm using emulator 2014 with SDK 5, I know that samsung is not accepting flash based app since Feb so I need to find a way without using flash.
even I tried the below way, the video is played on starting but I can't replay or show full screen I can't control anything in it.
this is in my smart tv app:
<iframe title="YouTube video player" class="youtube-player" type="text/html" width="640" height="390" src="http://192.168.1.6:8080/TestServer/index.jsp"
frameborder="0" allowFullScreen>
this is in index.jsp on tomcat on my machine:
<iframe src="//www.youtube.com/embed/ZOco-gIY-g4?width=680&height=382&theme=dark&autoplay=1&hd=1&rel=0&showinfo=0&modestbranding=1&iv_load_policy=3&autohide=1&start=0&wmode=opaque" allowfullscreen="" frameborder="0" height="382" width="680"></iframe>
please any working example that will work on tv and will accepted if I used in my application that will work on when submission to samsung is mostly appreciated.
Thanks,
SeeFoo
I too had this issue playing videos from YouTube.
I am using object tag for this and it is working as expected. Hopefully it will help you too.
Code:
<div id="webElement" style="display: none;">
<object type='text/html' width='1920' height='1080' data='http://www.youtube.com/embed/SEQ8jyvmYtw?rel=0&autoplay=1' > </object>
</div>
Since 2014 and sdk 5.0 Samsung Smart TV doesn't support Flash player plugin. If you want embed youtube player, try html5 format like this:
<iframe class="youtube-player" type="text/html" width="640" height="385" src="http://www.youtube.com/embed/hzixp8s4pyg?rel=0&autoplay=1&hd=1&showinfo=0&modestbranding=1&autohide=1&start=0" frameborder="0">
BTW flv container also doesn't support.
This specification describes the codecs supported by Samsung Smart TV pls see
http://www.samsungdforum.com/Guide/rel00010/index.html
Hope this will help you!
If you just want to play video no need of putting iframe in .jsp file and calling it here, just put the iframe with proper embed link of youtube.
something like this
<iframe id="clientvideoplayer" class="youtube-player" type="text/html" width="960" height="540" src="http://www.youtube.com/embed/Cq4RLyS0tz8?autoplay=1" allowfullscreen frameborder="0"></iframe>
However u will not be able to control play and pause of video as iframe are partially supported in Samsung Smart TV.