通过移动设备进行 Twilio 视频通话

发布于 2025-01-16 07:48:49 字数 688 浏览 2 评论 0原文

我面临 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.

enter image description here

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

enter image description here

Landscape mood

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

ぶ宁プ宁ぶ 2025-01-23 07:48:49

我已经解决了向视频元素本身添加静态高度并向其添加 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文