简体   繁体   English

Tizen Web 应用程序 - 嵌入<video>里面<iframe>可在模拟器中运行,但不能在实际电视上运行

[英]Tizen web app - Embedding <video> inside <iframe> works in emulator, but not on the actual TV

I have a simple Tizen webapp that works fine in emulator, but not on my Samsung signage TV (SSSP6).我有一个简单的 Tizen 网络应用程序,它在模拟器中运行良好,但在我的三星标牌电视 (SSSP6) 上运行良好。

<html>
    <head>    
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">   
        <meta charset="UTF-8" />
        <link rel="stylesheet" type="text/css" href="css/style.css" />
    </head>
    <body>
        <div class='embed-container'>
            <iframe width="100%" height="100%" sandbox="allow-same-origin allow-top-navigation allow-forms allow-scripts allow-popups" src="https://ad-presenter-staging.herokuapp.com/betsonglobal"></iframe>
        </div>
    </body>
</html>

If I replace the <iframe> with an actual <video> with the same content as what's in src, then it works fine in both emulator and on the TV.如果我将<iframe>替换为与 src 中内容相同的实际<video> ,那么它在模拟器和电视上都可以正常工作。

How do I go about debugging this?我该如何调试?

It's very possible URL is blocked during access.很可能在访问过程中阻止了 URL。 try updating the config.xml => policy => allow-navigation or Access with external URL domain you want to access.尝试使用您要访问的外部 URL 域更新 config.xml => 策略 => 允许导航或访问。

If I replace the with an actual with the same content as what's in src, then it works fine in both emulator and on the TV.如果我用与 src 中内容相同的实际内容替换 ,那么它在模拟器和电视上都可以正常工作。 => Does it show any error when is used on TV? => 在电视上使用时是否显示任何错误? The info displayed in region should be helpful to debug.区域中显示的信息应该有助于调试。

How do I go about debugging this?我该如何调试? => If you're able to connect the TV to your PC, you can try launching the webapp in debug mode. => 如果您能够将电视连接到您的 PC,您可以尝试在调试模式下启动 web 应用程序。 After launch, if you check console section in Web Inspector, it should be logging the URLs blocked and the reason for block which should aid in fixing启动后,如果您检查 Web Inspector 中的控制台部分,它应该记录被阻止的 URL 以及应该有助于修复的阻止原因

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM