wx.createVideoContext

VideoContext wx.createVideoContext(string id, Object this)

小程序插件:支持,需要小程序基础库版本不低于 1.9.6

微信 Windows 版:支持

微信 Mac 版:支持

微信 鸿蒙 OS 版:支持

相关文档: video 组件

功能描述

创建 video 上下文 VideoContext 对象。建议使用 wx.createSelectorQuery 获取 context 对象。

参数

string id

video 组件的 id

Object this

在自定义组件下,当前组件实例的this,以操作组件内 video 组件

返回值

VideoContext

posted on 2025-01-06 09:19  AtlasLapetos  阅读(104)  评论(0)    收藏  举报