美文网首页
vue中使用ocx支持rtmp推流

vue中使用ocx支持rtmp推流

作者: monkeyfly36 | 来源:发表于2019-01-15 15:40 被阅读0次

    实例

    <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

    相关文章

      网友评论

          本文标题:vue中使用ocx支持rtmp推流

          本文链接:https://www.haomeiwen.com/subject/lcuedqtx.html