Akamai HDCore +直播 = 偶尔出现黑色斑点
我注意到每当流质量发生变化(由于 DSS 节流阀)时,我只会收到“黑色斑点”(可能是 300 毫秒的全黑)。
我想也许没有足够的缓冲区,但流更改大约需要 7 秒(根据 HDCore 调试消息),并且根据关联的 netStream,bufferTime 默认设置为 10 秒。
也许有更好的方法在 HDCore 中设置缓冲区?这对于 OSMF 来说工作得很好,但是 OSMF 不支持 HTTP DSS。
使用:Flash Player 10.2 和 Akamai HDCore 2.1.20
嵌入代码:
<script type="text/javascript">
/*var str = '?';
for(var b in flashVars) str += b + '=' + flashVars[b] + '&';
alert(str);*/
var params = {
allowFullScreen:"true",
wmode:"window",
bgcolor:"#000000"
};
swfobject.embedSWF(WEBCAST_SWF_URL, "flashContent", "512", "288", "10.2.0", "/flash/expressinstall.swf?", null, params);
</script>
I noticed I'd only getting the "blips of black" (maybe 300ms of all black) whenever the stream quality changes (due to the DSS throttle).
I thought maybe there is not enough buffer, but the stream change takes about 7s (according to the HDCore debug messages) and the bufferTime, according to the associated netStream, is set to 10 seconds by default.
Perhaps there's a better way to set up the buffer in HDCore? This worked fine with OSMF, but OSMF doesn't support HTTP DSS.
Using: Flash Player 10.2 and Akamai HDCore 2.1.20
Embed Code:
<script type="text/javascript">
/*var str = '?';
for(var b in flashVars) str += b + '=' + flashVars[b] + '&';
alert(str);*/
var params = {
allowFullScreen:"true",
wmode:"window",
bgcolor:"#000000"
};
swfobject.embedSWF(WEBCAST_SWF_URL, "flashContent", "512", "288", "10.2.0", "/flash/expressinstall.swf?", null, params);
</script>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我注意到本地运行和点击 swf 都可以找到。
所以我更改了 HTML 中的包装器并修复了“blip”。我从 swfobject 切换到本机非 swfobject 包装器,一切正常(AC_OETags.js)。
快乐直播。
I noticed that running locally and hitting the swf both worked find.
So I changed the wrapper in the HTML and that fixed the "blip". I switched from swfobject to the native non-swfobject wrapper and everything worked (AC_OETags.js).
Happy streaming.