webrtc / samples

WebRTC Web demos and samples
https://webrtc.github.io/samples
BSD 3-Clause "New" or "Revised" License
13.94k stars 5.71k forks source link

When I use Android phone to publish stream, I get this problem in my chrome browser: "Uncaught TypeError: Cannot read property 'find' of undefined." #1589

Closed chenxuan670693438 closed 1 year ago

chenxuan670693438 commented 1 year ago

Please read first!

Please use discuss-webrtc for general technical discussions and questions. If you have found an issue/bug with the native libwebrtc SDK or a browser's behaviour around WebRTC please create an issue in the relevant bug tracker. You can find more information on how to submit a bug and do so in the right place here

Note: If the checkboxes above are not checked (which you do after the issue is posted), the issue will be closed.

Browser affected

Browser name including version (e.g. Chrome 64.0.3282.119)

Description

Steps to reproduce

Expected results

Actual results

hthetiot commented 1 year ago

@chenxuan670693438

This is most likely an issue in your code, unless you provide a way to reproduce the issue via a sample like requested when you created the issue it's unlikely anyone can help you.

'find' is an array method, you most likely using find on an array variable that is undefined. With the error you have a trace of the line and where the error is located.