【发布时间】:2020-04-13 00:24:23
【问题描述】:
我正在尝试将宽度和高度应用于发布者和订阅者,但无法解决。有人可以帮我解决这个问题吗?
甚至尝试使用OTPublisherContainer & OTSubscriberContainer 也...
这里是示例代码:
【问题讨论】:
我正在尝试将宽度和高度应用于发布者和订阅者,但无法解决。有人可以帮我解决这个问题吗?
甚至尝试使用OTPublisherContainer & OTSubscriberContainer 也...
这里是示例代码:
【问题讨论】:
查看源代码后,貌似不支持styles这个属性:https://github.com/opentok/opentok-react/blob/master/src/OTPublisher.js#L177
【讨论】:
OTPublisher 有一个 properties 属性。
可以如下设置
<OTPublisher properties={{width:400, height:400}} />
参考: https://tokbox.com/developer/sdks/js/reference/OT.html#initSession
【讨论】: