Skip to content

livekit视频流报错 || livekit video streaming error #268

@Develkone

Description

@Develkone

碰到一个很诡异的情况,我是自己搭建的livekit,也已经通过了livekit官方的可用性测试,语音以及屏幕分享都能工作,我用台式机屏幕分享时一切正常,但是我用笔记本来屏幕分享和开启摄像头时浏览器都会报错InvalidModificationError: Failed to execute 'setCodecPreferences' on 'RTCRtpTransceiver': Invalid codec preferences: invalid codec with name "H264".
image
虽然报错了但是笔记本一样能够分享屏幕,但是分享屏幕后分享屏幕按钮的状态不会改变,而且点击开启摄像头后摄像头按钮的状态没有改变也看不到摄像头的画面,虽然浏览器表示摄像头正在工作、笔记本的摄像头指示灯也是亮的,退出语音频道后摄像头仍然是开启的,刷新页面后才会关闭,这个异常我在官方的服务器也能复现,安卓端使用摄像头和笔记本的情况也是一样。

目前就是不知道为什么台式机没有问题但是笔记本却有问题,这是tailchat这边的问题还是livekit那边的问题呢


I encountered a very strange situation. I built my own livekit and it has passed the official usability test of livekit. Both voice and screen sharing can work. When I use a desktop computer to screen share, everything is normal, but when I use a laptop to screen share and when turning on the camera, the browser will report an error InvalidModificationError: Failed to execute 'setCodecPreferences' on 'RTCRtpTransceiver': Invalid codec preferences: invalid codec with name "H264".
image
Although an error is reported, the notebook can still share the screen, but the status of the share screen button will not change after sharing the screen, and after clicking to turn on the camera, the status of the camera button does not change and the camera picture cannot be seen, although the browser indicates that the camera is working. The camera indicator light of the notebook is also on. After exiting the voice channel, the camera is still on and will be turned off after refreshing the page. I can also reproduce this abnormality on the official server. The same is true when using the camera and notebook on the Android side.

At present, I don’t know why there is no problem on the desktop but there is a problem on the laptop. Is this a problem with tailchat or a problem with livekit?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions