|
测试的可以全屏,看下代码有什么问题?
var moviePlayer = api.require('moviePlayer');
moviePlayer.open({
rect:{
x: 0,
y: 0,
w:api.frameWidth,
h:300
},
styles:{
head:{
bg: 'rgba(161,161,161,0.5)',
height: 44,
y:20,
title:{
size:20,
color:'#fff',
width:40,
leftMargin:10
},
backSize: 30,
backImg:'widget://image/back.png',
customButtons:[{
w:30,
h:30,
rightMagin:10,
img:'widget://image/image/collect.png',
imgSelected:'fs://image/collectSelected.png',
}]},
foot:{
bg: 'rgba(0,0,0,0.5)',
height: 44,
palyBtn:{
size: 20,
playImg:'widget://image/play.png',
pauseImg:'widget://image/pause.png',
marginLeft:5
},
currentTimeLabel:{
textSize:14,
textColor:"#FFF",
textWidth: 43,
marginLeft:5
},
seekBar:{
sliderImg:'widget://image/circle.png',
sliderW : 20,
sliderH : 20,
progressColor: '#696969',
progressSelected: '#76EE00',
marginLeft:10,
marginRight:10
},
totalTimeLabel:{
textSize:14,
textColor:"#FFF",
textWidth: 43,
marginRight:5
},
fullscreenBtn:{
size:20,
verticalImg:'widget://image/vertical.png',
horizontalImg:'widget://image/horizontal.png',
}
} },
path:'http://baobab**.**/1455782903700jy.mp4',
autoPlay: true
},function(ret, err){
if(ret){
// alert(JSON.stringify(ret));
// } else {
// alert(JSON.stringify(err));
}
}); |
|