在智能电视应用程序(三星,LG ...)中,是否可以在应用程序背景中显示电视输入流/广播?
含义:使用应用程序用户界面覆盖正在观看的频道/内容?

在Samsung 2011智能电视模拟器中,我看到如果我将应用程序主体背景设置为透明:

body
{
    width: 960px;
    height: 540px;
    background-color:transparent;
}


我可以看到电视输入流(正在更改风景图片),但在2012/13模拟器中看不到。

是否有可能在真正的电视(和2012/13模拟器)上产生相同的影响?

最佳答案

您需要创建一个股票代码应用程序。对于这种类型的应用程序,将ticker标签的值放在config.xml文件中为“ y”,这是一个示例:

<?xml version="1.0" encoding="UTF-8"?>
<widget>
    <cpname itemtype="string"></cpname>
    <cplogo itemtype="string"></cplogo>
    <cpauthjs itemtype="string"></cpauthjs>
    <ThumbIcon itemtype="string">icon/icono106.png</ThumbIcon>
    <BigThumbIcon itemtype="string">icon/icono115.png</BigThumbIcon>
    <ListIcon itemtype="string">icon/icono85.png</ListIcon>
    <BigListIcon itemtype="string">icon/icono95.png</BigListIcon>
    <category itemtype="string"></category>
    <autoUpdate itemtype="boolean">n</autoUpdate>
    <ver itemtype="string">0.100</ver>
    <mgrver itemtype="string"></mgrver>
    <fullwidget itemtype="boolean">n</fullwidget>
    <type itemtype="string">user</type>
    <srcctl itemtype="boolean">y</srcctl>
    <ticker itemtype="boolean">y</ticker>
    <childlock itemtype="boolean">n</childlock>
    <videomute itemtype="boolean">n</videomute>
    <dcont itemtype="boolean">y</dcont>
    <widgetname itemtype="string">App</widgetname>
    <description itemtype="string"></description>
    <width itemtype="string">1280</width>
    <height itemtype="string">720</height>
    <author itemtype="group">
        <name itemtype="string"></name>
        <email itemtype="string"></email>
        <link itemtype="string"></link>
        <organization itemtype="string">
        </organization>
    </author>
</widget>

关于javascript - 具有透明背景的智能电视应用程序:在后台显示电视广播,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/19218316/

10-09 18:33