当前位置:   article > 正文

app直播源码,edusoho直播回放增加进度条_给软件里写入直播进度代码

给软件里写入直播进度代码

app直播源码,edusoho直播回放增加进度条

var skinLayoutchildren = [];
                if(this.liveInfo.is_play){
                    skinLayoutchildren = [
                        {name:"liveDisplay", align:"tlabs", x: 15, y:6},
                        {name:"fullScreenButton", align:"tr", x:10, y: 10},
                        {name:"subtitle", align:"tr",x:15, y:12},
                        {name:"volume", align:"tr", x:5, y:10}
                    ];
                }else{
                    skinLayoutchildren = [
                        {name:"progress",align: "blabs", x: 0,y: 44},
                        {name: "playButton",align: "tl",x: 15,y: 12},
                        {name: "timeDisplay",align: "tl",x: 10,y: 7},
                        {name: "setting",align: "tr",x: 15,y: 12},
                        {name:"fullScreenButton", align:"tr", x:10, y: 10},
                        {name:"subtitle", align:"tr",x:15, y:12},
                        {name:"volume", align:"tr", x:5, y:10}
                    ];
                }
                this.player = new Aliplayer({
                    id: 'J_prismPlayer',
                    width: '100%',
                    height:'4.22rem',
                    autoplay:false,
                    isLive:this.liveInfo.is_play ? true : false,
                    source : this.PullUrl,
                    skinLayout: [
                        {name: "bigPlayButton", align: "blabs", x: 30, y: 80},
                        {name: "errorDisplay", align: "tlabs", x: 0, y: 0},
                        {name: "infoDisplay", align: "cc"},
                        {
                            name: "controlBar", align: "blabs", x: 0, y: 0,
                            children:skinLayoutchildren
                        }
                    ]
                },function(player){
                    console.log('播放器创建好了。')
                });
                this.bindEvevt();
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39

以上就是app直播源码,edusoho直播回放增加进度条, 更多内容欢迎关注之后的文章

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/不正经/article/detail/130263
推荐阅读
相关标签
  

闽ICP备14008679号