Stearinrin / mediasoup-demo

mediasoup official demo application
https://demo.mediasoup.org
MIT License
0 stars 0 forks source link

Consumer video unavailable when videoAnalyze=false #2

Closed Stearinrin closed 8 months ago

Stearinrin commented 8 months ago

Must set videoAnalyze true for both of Producer and Consumer

Stearinrin commented 8 months ago

Now:

Displaying video Producer=true Producer=false
Consumer=true Available Unavailable
Consumer=false Unavailable Unavailable
Stearinrin commented 8 months ago

Ideal:

Displaying video Producer=true Producer=false
Consumer=true Available Unavailable or fallback
Consumer=false Unavailable or fallback Available
Stearinrin commented 8 months ago

Using Firefox, it works (because Encoded Transform is not work, so it behaves fine whether videoAnalyze is true or false). But VP9 codec is unavailable, so it needs to set forceH264 or forceVP8 true.

Stearinrin commented 8 months ago

Fix here

https://github.com/Stearinrin/mediasoup-demo/blob/25aa94e7b1583346b4e072c8cb9a57d3f0adf8ca/app/lib/RoomClient.js#L2535-L2536 https://github.com/Stearinrin/mediasoup-demo/blob/25aa94e7b1583346b4e072c8cb9a57d3f0adf8ca/app/lib/RoomClient.js#L2649-L2650