Skip to content

Commit f79bef8

Browse files
authored
Update index.md
add vision mode description
1 parent 11987e6 commit f79bef8

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

docs/index.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,32 @@ protected void onDestroy() {
392392

393393
```
394394

395+
## 视联网模式
396+
397+
通过`videoOsView`的startService()启动视联网模式
398+
399+
```
400+
mVideoPlusView.startService(ServiceType.ServiceTypeVideoMode, new HashMap<String, String>(), new IServiceCallback() {
401+
402+
@Override
403+
public void onCompleteForService() {
404+
// 启动成功
405+
}
406+
407+
@Override
408+
public void onFailToCompleteForService(Throwable throwable) {
409+
// 启动失败
410+
}
411+
});
412+
}
413+
414+
mVideoPlusView.stopService(ServiceType.ServiceTypeVideoMode); // 关闭视联网模式
415+
416+
```
417+
418+
419+
420+
395421
## 其他
396422

397423
- 广告监听中相关属性说明(WidgetInfo)

0 commit comments

Comments
 (0)