在播放视频结束时,jwplayer会显示一个覆盖整个jwplayer矩形的“共享” UI - 这是一个带有3个选项卡的分页窗口,'share' ,'嵌入','信息'。 我需要让这个“共享”UI消失。jwplayer'share'图片不会消失
要替换此“共享” UI,我假设Jwplayer正在完成 播放视频为标准的行为后搭 - 我加的事件处理ONIDLE,和的onComplete onReady 事件。
在事件处理程序我也正是 玩家在创建时的代码所做的:我打开一个播放列表中的默认视频和默认的图像:
// this is called immediately after jwplayer.setup()
jwplayer().onComplete(function playerOnCompleteEvent(){handlePlayerComplete(jwplayer);});
// this gets called for the onComplete event
function handlePlayerComplete(theJwPlayer)
{
playlist = { file: 'http://localhost/theWebsite/videos/moto_sounds.flv',
image: 'http://localhost/theWebsite/images/mybanner2.jpg' };
alert("in handlePlayerIdle: the playlist file is "
+ playlist.file + " and image is " + playlist.image);
theJwPlayer().load(playlist);
}
的“警报”对话框告诉我,播放列表文件和图像是正确的。 而且我知道我的事件处理程序正在被调用 - 我使用处理程序中的警告框来向我自己证明。
但'共享'3标签窗口不会消失。回放后仍然存在 - onIdle和onReady都使用上面的相同代码 - 没有帮助。
'分享'用户界面 - 在视频播放 完成后,如何将其替换为'mybanner2.jpg'?