4
jwpalyer를 사용하여 비디오 파일을 표시하려면 다음 소스 코드를 사용하고 있습니다.onComplete 이벤트에서 미리보기 이미지를 변경하는 방법?
jwplayer('mediaplayer').setup({
'id': 'mediaplayer',
'width': '649',
'image': "<?=$siteURL?>/views/index/preview.jpg",
'height': '300',
'file': '<?=siteURL?>/views/index/video.mp4',
'flashplayer': '<?=siteURL?>/scripts/jwplayer/player.swf',
'modes': [
{type: 'flash', src: '<?=siteURL?>/scripts/jwplayer/player.swf?autostart=true'},
{
type: 'html5'
},
{type: 'download'}
],
'events': {
onComplete: function(e){
}
}
});
동영상 끝 부분에서 '이미지'를 변경하고 싶습니다. 'onComplete'이벤트를 추가했지만 'image'속성 만 변경하는 방법을 알지 못합니다.
this.load({
"file": "originalvideofile.mp4",
"image": "newimage.jpg"
});
내 버전은 6.12이다
내가 API를 jwplayer 읽고 검색 좀, 운 .. –