PICO VR眼镜定制播放器使用说明文档videoplayerlib-ToB.apk

本文档详细介绍了如何在PICO VR眼镜上安装和使用高级定制播放器,包括启动播放器、控制播放的各种操作,如切换模式、播放、暂停、退出等,并提供了ADB命令示例。此外,还提及了接收播放器广播和Aidl接口的使用,以获取播放进度和同步播放状态。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

安装高级定制播放器

高级定制播放器下载地址:https://download.csdn.net/download/ahphong/89360454
仅限用于PICO G2、G3、G4、NEO系列VR眼镜上使用,
用途:用于第三方APP(开发者)调用定制播放器播放2D、3D、180°、360°全景视频。
VR眼镜系统请升级到最新版,可在官网下载,企业版用户请当地Pico代理商/技术支持,获取最新企业版系统升级固件。
NEO3企业版开发者,可以在文章结尾处下载系统固件。

接口和使用说明

1. 启动播放器

package:com.picovr.wing.videoplayer
class:com.picovr.wing.videoplayer.UnityActivity

参数key 类型 value 说明
playcommand String playlist 传递视频列表
filelist String “/storage/emulated/0/Movies/ScreenRecording/test1.mp4,/storage/emulated/0/Movies/ScreenRecording/test2.mp4” 视频路径
isControl boolean true or false 启动播放器后,是否可调出控制面板true:不可false:可
playMode int 参考playMode对应 参考playMode
repeatMode int 1: 单曲循环, 2:列表循环, 3 :不循环 配置播放循环模式。(注,只有配置为3时,能收到end 广播)
seekPlay boolean true or false 启动视频播放时,是否强制从头播放。true 会直接seek到0.false则不处理
autoPlay int 0 或者不设置 启动播放器时,是否暂停播放

2. 控制播放

切换模式

adb shell am broadcast -a com.picovr.wing.player.PLAY_CONTROL --es controltype “playcommand” --es mediatype “video” --es operation “playmode” --ei “playmode” 2

Intent intent = new Intent(com.picovr.wing.player.PLAY_CONTROL);
intent.setPackage("com.picovr.wing.videoplayer");
intent.putExtra("controltype", "playcommand");
intent.putExtra("mediatype", "video");
intent.putExtra("operation", "playmode");
intent.putExtra("playmode", 2);
getContext().sendBroadcast(intent);
播放或暂停

adb shell am broadcast -a com.picovr.wing.player.playorpause

Intent intent = new Intent("com.picovr.wing.player.playorpause");
intent.setPackage("com.picovr.wing.videoplayer");
getContext().sendBroadcast(intent);
退出播放器

adb shell am broadcast -a com.picovr.wing.player.exit

Intent intent = new Intent("com.picovr.wing.player.exit");
intent.setPackage("com.picovr.wing.videoplayer");
getContext().sendBroadcast(intent);
重新播放

adb shell am broadcast -a com.picovr.wing.player.PLAY_CONTROL --es controltype “playcommand” --es mediatype “video” --es operation “play”

Intent intent = new Intent(com.picovr.wing.player.PLAY_CONTROL);
intent.setPackage("com.picovr.wing.videoplayer");
intent.putExtra("controltype", &#
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值