更新记录
1.0.0(2025-01-09)
下载此版本
初始化版本
平台兼容性
App |
快应用 |
微信小程序 |
支付宝小程序 |
百度小程序 |
字节小程序 |
QQ小程序 |
HBuilderX 3.6.8,Android:不确定,iOS:15,HarmonyNext:不确定 |
× |
× |
× |
× |
× |
× |
钉钉小程序 |
快手小程序 |
飞书小程序 |
京东小程序 |
鸿蒙元服务 |
× |
× |
× |
× |
× |
H5-Safari |
Android Browser |
微信浏览器(Android) |
QQ浏览器(Android) |
Chrome |
IE |
Edge |
Firefox |
PC-Safari |
× |
× |
× |
× |
× |
× |
× |
× |
× |
import { VideoUniPlayer } from '@/uni_modules/PP-videoplayeruts'
var player = new VideoUniPlayer();
let param = {"x":30,
"y":30,
"width":1125,
"height":1200,
"corner":30,
"user_id":"47ddc40f89af",
"room_id":"c4a0261f5c5e",
"server_user_id":"171563",
"auth_token":"eyJhcHBpZCI6ICI5YmRjNzIwZi0yODQ4LTQ5OWItOTNlYi00ZTIxMjJjNjIyYzQiLCAiY2hhbm5lbGlkIjogImM0YTAyNjFmNWM1ZSIsICJ1c2VyaWQiOiAiNDdkZGM0MGY4OWFmIiwgIm5vbmNlIjogIiIsICJ0aW1lc3RhbXAiOiAxNzM2NDU0MjQ2LCAiZ3NsYiI6IFsiaHR0cHM6Ly9ndy5ydG4uYWxpeXVuY3MuY29tIl0sICJ0b2tlbiI6ICI1YjM3MDIzNjk1MjU5NzBiYTJjZGZlOTgyMDZkOTE5NzczYWZjMjZhMzdlNGI4M2UwNjM3NzA5MjEwMjMxYjA2In0=",
"timestamp":"1736411046.674"};
player.beginPlayer(param,(res)=>{
});
player.stop();//停止
player.swapCarmer(1);//切换摄像头
player.checkPermission();//检查权限
player.requstPermission((res)=>{});//请求权限