Show Youtube Video in Samsung Smart TV App

前端 未结 3 1510
情深已故
情深已故 2021-01-25 10:54

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

相关标签:
3条回答
  • 2021-01-25 11:26

    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>  
    
    0 讨论(0)
  • 2021-01-25 11:35

    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.

    0 讨论(0)
  • 2021-01-25 11:45

    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!

    0 讨论(0)
提交回复
热议问题