[]video rmtp ERR_UNKNOWN_URL_SCHEME

 
视频流播放,添加了video标签,代码如下
        var videoElement = Laya.Browser.createElement("video");
console.log(videoElement)
Laya.Browser.document.body.appendChild(videoElement);
// 设置Video元素地样式和属性
videoElement.style.zInddex = Laya.Render.canvas.style.zIndex + 1;
var html = '<source src="rtmp://rtmp.open.ys7.com/openlive/2245d47a94b54c73bdbc628a10855c50" type="" /><source src="http://hls.open.ys7.com/openli ... ot%3B type="application/x-mpegURL" />';

videoElement.innerHTML = html;
videoElement.controls = true;
videoElement.autoplay = true;
videoElement.preload = true;
// 阻止IOS视频全屏
videoElement.setAttribute("webkit-playsinline", true);
videoElement.setAttribute("playsinline", true);
错误显示:
GET rtmp://rtmp.open.ys7.com/openlive/2245d47a94b54c73bdbc628a10855c50 net::ERR_UNKNOWN_URL_SCHEME
已邀请:

Monica - 知识达人

赞同来自:

你先看下在原生js中是否有问题吧。如果原生里边没有问题,在LayaAir中有问题的话请上传一个可以运行的例子,我们看看

要回复问题请先

商务合作
商务合作