赞 | 2 |
VIP | 0 |
好人卡 | 0 |
积分 | 51 |
经验 | 0 |
最后登录 | 2024-11-24 |
在线时间 | 335 小时 |
Lv4.逐梦者
- 梦石
- 0
- 星屑
- 5149
- 在线时间
- 335 小时
- 注册时间
- 2021-2-9
- 帖子
- 69
|
我一直显示错误···不知道为什么···大佬能讲下用法吗···
Use script call:
ysp.VideoPlayer.loadVideo(videoName) - Preload Video
ysp.VideoPlayer.releaseVideo(videoName) - Release memory for a Video
ysp.VideoPlayer.newVideo(videoName, id) - Create new Video object with id
ysp.VideoPlayer.playVideoById(id) - Play a Video object by id
ysp.VideoPlayer.stopVideoById(id) - Stop a Video object by id
ysp.VideoPlayer.setLoopById(id) - Make a Video object playing loop by id
ysp.VideoPlayer.getVideoById(id) - Get Video object by id
ysp.VideoPlayer.isReady() - Check if all videos have been loaded
Video Object is a PIXI.Sprite object, can be re-position by modifying x and y props
To preload a (or many) video(s), use loadVideo(videoName) followed by a loop in
an event, break the loop when isReady() returns true
使用脚本调用:
ysp。录像机。加载视频(videoName)-预加载视频
ysp。录像机。释放视频(videoName)-释放视频的内存
ysp。录像机。newVideo(videoName,id)-创建id为的新视频对象
ysp。录像机。playVideoById(id)-按id播放视频对象
ysp。录像机。stopVideoById(id)-按id停止视频对象
ysp。录像机。setLoopById(id)-使视频对象按id播放循
ysp。录像机。getVideoById(id)-按id获取视频对象
ysp。录像机。isReady()-检查是否已加载所有视频
视频对象是PIXI。精灵对象,可以通过修改x和y道具重新定位
要预加载一个(或多个)视频,请使用loadVideo(videoName),然后在
事件,在isReady()返回true时中断循环 |
|