question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error 'options.audio/video is inconsistent' when I publish screen stream!

See original GitHub issue

Show my code first

navigator.mediaDevices.getDisplayMedia()
.then(stream => {
  const publishStream = new Owt.Base.LocalStream(
    stream, {video: Owt.Base.VideoSourceInfo.SCREENCAST}
  );
  this.conference.publish(publishStream).then(publication => {});
}, err => {
  Log.danger('Failed to create MediaStream');
  console.error(err);
});

An error like this: image

I’m so confused with sharing screen! I only set video stream, why audio/video is inconsistent?

What config should I set?

Better to post some demo code, please!!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
starwarfancommented, Sep 11, 2019

You can set { audio: false } when publish a video-only stream

0reactions
jbts6commented, Sep 11, 2019

Yeah, it works. Thank you very much!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error Code - BytePlus Documentation Centre
The user failed to publish the audio & video stream in the room. The reason for the failure is that the user does...
Read more >
Live streaming error messages - YouTube Help
The Live Dashboard and Live Control Room checks for errors in the stream you're sending to YouTube. ... Your encoder is sending incorrect...
Read more >
Correcting Audio Video Sync Problems in Home Theater
First choice: Disable video-processing settings on TV and home theater receiver, then enable video-processing settings again.
Read more >
Android Java Express-Video SDK Error Codes
Description: Failed to take a screenshot of the publis stream screen. Cause: The preview is stopped and the push is abnormal. Solutions: Turn...
Read more >
trtc-js-sdk-infinity - npm
publish screen sharing stream const screenStream = TRTC. ... catch(error) { // subscribe state is inconsistent with remote publishing state if (error.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found