# openYXTLiveScene
云学堂直播-打开直播。
# 输入
继承标准对象输入,扩展属性描述
| 名称 | 数据类型 | 必填 | 默认值 | 描述 |
|---|---|---|---|---|
| scene | string | 是 | 直播场景,值有 liveRoom(直播间)、liveReplay(直播回放)、miniCourse(微课) | |
| roomId | string | 是 | 直播间 id | |
| token | string | 否 | 鉴权 token | |
| title | string | 否 | 直播或微课的标题。直播回放、微课需要传,直播间不需要传 |
# 输出
继承标准对象输出,无扩展属性
# 示例代码
app.link.openYXTLiveScene(example_scene, example_roomId, example_token, example_title, result => {
bui.alert('openYXTLiveScene success')
},
error => {
bui.alert(error);
})