[]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
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
Monica - 知识达人
赞同来自: