webrtc connect with selected video.

This commit is contained in:
Miroslav Šedivý
2021-04-30 14:05:07 +00:00
parent 57deea25d4
commit 014b757734
5 changed files with 22 additions and 9 deletions

View File

@ -391,7 +391,7 @@ func (manager *WebRTCManagerCtx) mediaEngine(videoID string) (*webrtc.MediaEngin
// all videos must have the same codec
video, ok := manager.capture.Video(videoID)
if !ok {
return nil, fmt.Errorf("default video track not found")
return nil, fmt.Errorf("selected video track not found")
}
videoCodec := video.Codec()