owt-client-javascript
owt-client-javascript copied to clipboard
Cannot publish an Video-only Stream
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
Please check your stream
to see if only has video tracks. If it also has audio tracks, you'll the error message above.
Hi @jianjunz , Thanks for the reply. I captured the stream with { audio: false, video: true } constraint, so there is no chance of audio tracks.
Did you solve this problem? I encountered a similar problem to yours, how did you solve it? Thank you very much