首页 > 编程语言 >app直播源码,edusoho直播回放增加进度条

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

时间:2022-11-24 14:24:53浏览次数:44  
标签:10 edusoho 15 name align tr 直播 源码

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();

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

 

标签:10,edusoho,15,name,align,tr,直播,源码
From: https://www.cnblogs.com/yunbaomengnan/p/16921697.html

相关文章