更新时间:2026-04-10 GMT+08:00
onOrientation
事件说明
云机的横竖屏状态回调。
回调参数说明
|
字段名 |
类型 |
是否必选 |
说明 |
|---|---|---|---|
|
event |
Object |
是 |
包含横竖屏状态信息,event.orientation:string
|
调用示例
player.on("onOrientation", function (event) {
console.log("当前云机横竖屏状态:" + event.orientation);
});
父主题: 基础回调方法