通过移动设备进行 Twilio 视频通话
我面临 Twilio 视频通话容器宽度的远程参与者的问题。
当涉及到移动设备和桌面时,我需要控制这两个视图,但结果始终显示为如附图所示。
我尝试传递给 Video.connect(token, {video: {width: 300, height: 300}})
但它也不起作用。
此外,当我尝试将移动设备旋转为横向模式时,它会像桌面参与者视图一样按预期工作,有人可以帮助我吗?
这些屏幕截图也描述了我所说的,肖像心情
风景心情
I'm facing an issue with the remote participant of Twilio video call container width.
I need to control both of views when it come to the mobile and the desktop, but the result is keeps showing as like the attached image.
I've tried to pass to the Video.connect(token, {video: {width: 300, height: 300}})
but it's also not working.
Also when I'm trying to rotate the mobile into a landscape mood it working as expected like the desktop participant view, could any one please help me with that ?
Also those screenshots describe what I'm saying, portrait mood
Landscape mood
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我已经解决了向视频元素本身添加静态高度并向其添加
object-fit: contains
的问题。I've fixed my issue with adding a static height to the video element itself and adding an
object-fit: contain
to it.