NickLiu
NickLiu
  • 发布:2018-10-13 20:39
  • 更新:2018-11-02 15:41
  • 阅读:2544

一个页面多个VideoPlayer,怎么实现播放一个后,另一个自动暂停?

分类:HTML5+

功能描述:一个页面多个video,怎么实现播放一个后,另一个自动暂停?
实现思路: 监听play事件,取到其它 videoplay 暂停掉,但不知如何取,使用下在方法,
不成功,如可处理?

如何取new plus.video.VideoPlayer生成的 video id
然后通过 plus.video.getVideoPlayerById()获取?

2018-10-13 20:39 负责人:无 分享
已邀请:
回梦無痕

回梦無痕 - 暂停服务

var V1 = new plus.video.VideoPlayer('v1');  
var V2 = new plus.video.VideoPlayer('v2');  
var V3 = new plus.video.VideoPlayer('v3');  
var V4 = new plus.video.VideoPlayer('v4');
西门吹猫

西门吹猫

同问

该问题目前已经被锁定, 无法添加新回复