在三星智能电视应用程序中显示Youtube视频 [英] Show Youtube Video in Samsung Smart TV App

查看:1608
本文介绍了在三星智能电视应用程序中显示Youtube视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只想运行一个显示YouTube视频的示例三星智能电视应用程序,我尝试了一切,我发现在互联网上,没有任何工作,我正在寻找一种方式,一个星期后,仍然没有找到,我总是在白色或黑色屏幕上看到[[缺少插件]]!
我使用SDK 5的模拟器2014年,我知道,三星是不接受基于Flash的应用程序,因为2月,所以我需要找到一种方式,而不使用闪光灯。



<即使我尝试了下面的方式,视频在开始播放,但我无法重播或显示全屏我无法控制任何东西。



这个是在我的智能电视应用程序:

 < iframe title =YouTube视频播放器class =youtube-playertype = text / htmlwidth =640height =390src =http://192.168.1.6:8080/TestServer/index.jsp



frameborder =0allowFullScreen>



这是在我的机器上的tomcat上的index.jsp中:

 < iframe src =// www.youtube.com/embed/ZOco-gIY-g4?width=680&amp;height = 382&放大器;放大器;主题=暗&放大器;放大器;自动播放= 1&放大器;放大器; HD = 1&放大器;放大器;相对= 0&放大器;放大器; showinfo = 0&放大器;放大器;适度品牌= 1&放大器;放大器;加入iv_load_policy = 3&放大器;放大器;自动隐藏= 1和; amp; start = 0& amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; meborder =0height =382width =680>< / iframe> 

请在电视上运行的任何工作示例,如果我在我的应用程序中使用当提交给三星大多赞赏。

谢谢,



SeeFoo


我也有这个问题从YouTube播放视频。

我正在使用对象标记为此,它按预期方式工作。解决方案



代码:

 < div id =webElementstyle =display:none;> 
< object type ='text / html'width ='1920'height ='1080'data ='http://www.youtube.com/embed/SEQ8jyvmYtw?rel = 0& autoplay = 1'> ; < /对象>
< / div>


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&amp;height=382&amp;theme=dark&amp;autoplay=1&amp;hd=1&amp;rel=0&amp;showinfo=0&amp;modestbranding=1&amp;iv_load_policy=3&amp;autohide=1&amp;start=0&amp;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>  

这篇关于在三星智能电视应用程序中显示Youtube视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆