app直播原始碼,edusoho直播回放增加進度條

zhibo系統開發發表於2022-11-24

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直播回放增加進度條, 更多內容歡迎關注之後的文章


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/69978258/viewspace-2924945/,如需轉載,請註明出處,否則將追究法律責任。

相關文章