实例
<object id="SNEmfacePlayerOcx"
style="margin:0.5px 0.5px 0 0.5px"
:width="videoWidth"
:height="videoHeight"
CLASSID="CLSID:B2D47814-EF65-4C50-8B5D-B6B43078D76A"
>
</object>
<el-input name="playaddr" v-model="ocxUrl" style="width:300px"></el-input>
<el-button type="primary" @click='PlayUrl()'>play</el-button>
PlayUrl(){
let _url = location.href
let _ip = _url.substring(7, _url.length-6)
var param = "{\"url\":\"snemface://172.37.3.123:7070/3\",\"playcache\":500,\"ratio\":false}"
var ret;
if (playaddr.value != '') {
param = "{\"url\":\"" + playaddr.value + "\",\"playcache\":500,\"ratio\":false}";
}
ret = SNEmfacePlayerOcx.PlayURL(param);
}
参考地址:
IE、chorme、firefox、safari对于标签标签支持情况:
https://blog.csdn.net/ndsc0201/article/details/8846341
网友评论