|
本帖最后由 daolilaxi 于 2018-7-11 21:11 编辑
我开了个新应用 自定义loader只绑定了ijkplayer模块 还是一样的
我的用的android 海马玩 模拟器跑的
代码:
<script type="text/javascript">
apiready = function() {
var ijkplayer = api.require('ijkplayer');
ijkplayer.open({
rect: {
x: 0, //(可选项)数字类型;播放器 x 坐标(相对于所属的 Window 或 Frame);默认值:0
y: 0, //(可选项)数字类型;播放器 y 坐标(相对于所属的 Window 或 Frame);默认值:0
w: 320, //(可选项)数字类型;播放器(相对于所属的 Window 或 Frame);默认值:屏幕宽度
h: 300, //(可选项)数字类型;播放器(相对于所属的 Window 或 Frame);默认值:300
},
texts: {
head: {
title: '顶部文字'
}
},
styles: {
repeat: {
repeatwidth: 40, //(可选项)数字类型;重新播放按钮的宽;默认:40
repeatheight: 60, //(可选项)数字类型;重新播放按钮的高;默认:60
repeatImg: '',
},
lock: {
lockSize: 30,
lockImg: '',
},
head: {
bg: 'rgba(0.5,0.5,0.5,0.7)',
height: 44,
titleSize: 20,
titleColor: '#fff',
backSize: 44,
hide: false,
customButtons: [{
w: 44,
h: 44,
rightMagin: 10,
img: '',
imgSelected: '',
}]
},
foot: {
bg: 'rgba(0.5,0.5,0.5,0.7)',
height: 44,
playSize: 44,
playImg: '',
pauseImg: '',
timeSize: 14,
timeColor: '#fff',
sliderImg: '',
progressColor: '#696969',
progressSelected: '#76EE00',
hide: false,
verticalImg: '',
horizontalImg: '',
}
},
path: 'http://**.**2.z0.glb**.**/c1.1.mp4',
autoPlay: true,
movieScaling: 'scaleNone',
coverImg: 'widget://image/beautiful.png'
});
ijkplayer.show();
//ijkplayer.play();
};
</script>
页面
|
|