Advertisement

flv.js 播放 rtsp 流

阅读量:

flv.js 播放多个rtsp流【二】

①插入模板

复制代码
    <template>
    <div>
        <video class="demo-video" ref="player" muted autoplay></video>
        <video class="demo-video" ref="player1" muted autoplay></video>
    </div>
    </template>
    
    
      
      
      
      
      
      
    

②此处仅为简要展示,因此代码编写较为基础,建议大家可以借助动态数据获取方式或json文件进行进一步优化

复制代码
    export default {
    data () {
        return {
          productLists: [
            {
              id: "1",
              rtsp: "rtsp://localhost/0210test6",
              player: null
            },{
              id: "2",
              rts

全部评论 (0)

还没有任何评论哟~