\wap\view\live\index.html
ctrl+f 搜索到这样
if(this.PullUrl || this.liveInfo.is_play){
然后把下面的代码copy到此判断花括号内
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();
最后效果
