owt-client-javascript icon indicating copy to clipboard operation
owt-client-javascript copied to clipboard

Cannot publish an Video-only Stream

Open kurapatijayaram opened this issue 4 years ago • 3 comments

When I want to publish only video stream, I constructed the object as

let localStream = new Owt.Base.LocalStream(
            stream,
            new Owt.Base.StreamSourceInfo(undefined, "camera"),
            { id: this._currentUser.id, osType: this._currentUser.osType, userName: this._currentUser.name, videoType, attributes }
        );

and after publish I am receiving error as : options.audio/video is inconsistent with tracks presented in the MediaStream.

My JS SDK version is 4.2.1

kurapatijayaram avatar May 13 '20 20:05 kurapatijayaram

Please check your stream to see if only has video tracks. If it also has audio tracks, you'll the error message above.

jianjunz avatar May 14 '20 02:05 jianjunz

Hi @jianjunz , Thanks for the reply. I captured the stream with { audio: false, video: true } constraint, so there is no chance of audio tracks.

kurapatijayaram avatar May 28 '20 06:05 kurapatijayaram

Did you solve this problem? I encountered a similar problem to yours, how did you solve it? Thank you very much

17638576294 avatar Feb 11 '22 09:02 17638576294