本文介绍了嵌入HTML5流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试开发一个应用程序,我可以将来自Twitch.tv的实时流嵌入到应用程序中。  我在使用hls html5嵌入时遇到了问题。  我正在尝试使用webview,因此我可以使用以下信息嵌入播放器和聊天窗口

I am attempting to develop an app which I can embed live streams from Twitch.tv into the application.  I am having issues though with the hls html5 embedding.  I am attempting to do it using a webview, so I can just embed the player and chat window with the following information:

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" type="text/css" href="css/phone.css" />
    <title>Windows Phone</title>
</head>
<body>
    <div>
        PS Twitchers
    </div>
    <div id="page-title">
        Bob_Hoil
    </div>
    <div id="vidStream">
        <iframe id="player" type="text/html" width="auto" height="250px"
                src="http://www.twitch.tv/bob_hoil/hls"
                frameborder="0"></iframe>
    </div>
    <div id="chatView">
        <iframe style="width: auto; height: 250px;" src="http://twitch.tv/bob_hoil/chat"></iframe>
    </div>
</body>
</html>

问题是我遇到了不支持的播放器问题,Windows Phone 8.1不支持使用新的嵌入式播放器吗?

Problem is that I get the Unsupported Player problem, does Windows Phone 8.1 not support this with the new embeddedplayer?

推荐答案

这与Phone没有任何关系。 我在普通IE中遇到了同样的问题。 您将不得不使用Twitch.tv来找出问题所在。 请在此处分享结果以帮助其他人,或者如果您需要
其他帮助。

This does not have anything to do with Phone specifically.  I get the same issue with normal IE.  You will have to engage Twitch.tv to find out what the problem is.  Please share the results back here to help others as well or if you need other help with this.


这篇关于嵌入HTML5流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-30 19:48