【发布时间】:2015-05-13 19:48:41
【问题描述】:
我正在使用 OpenTok,我正在尝试打开/关闭视频显示。 所以我使用以下 pubOptions
var pubOptions;
if (show_video)
{
pubOptions= null;
}
else
{
pubOptions= { videoSource: null, style: {buttonDisplayModeo: 'off'}};
}
//Replace the first parameter with the replacement element ID:
session.on("streamCreated", function(event)
{
session.subscribe(event.stream);
});
session.connect(token, function(error)
{
publisher = OT.initPublisher("publisher_text",pubOptions);
session.publish(publisher);
});
但两种情况下都会显示视频窗口。
【问题讨论】:
标签: opentok