Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: this.ondata is not a function #397

Closed
felipecrs opened this issue Jan 23, 2023 · 3 comments
Closed

Uncaught TypeError: this.ondata is not a function #397

felipecrs opened this issue Jan 23, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@felipecrs
Copy link
Contributor

This keeps appearing in my HA logs:

2023-01-23 13:08:39.594 ERROR (MainThread) [frontend.js.latest.202301100] https://<ha>/webrtc/video-rtc.js:313:22 Uncaught TypeError: this.ondata is not a function

And I wonder if there is something that can be done to fix it.

@AlexxIT AlexxIT added the bug Something isn't working label Jan 24, 2023
@bigmoby
Copy link

bigmoby commented Jan 24, 2023

The same error as above and if this could help you I have also another error message in the previous WebRTC version not shown:

2023-01-24 19:47:25.937 ERROR (MainThread) [frontend.js.latest.202301100] https://<ha>/webrtc/video-rtc.js:389:27 Uncaught NotSupportedError: Failed to execute 'addSourceBuffer' on 'MediaSource': The type provided ('video/mp4; codecs="avc1.000001"') is unsupported.
2023-01-24 19:47:25.957 ERROR (MainThread) [frontend.js.latest.202301100] https://<ha>/webrtc/video-rtc.js:313:22 Uncaught TypeError: this.ondata is not a function

The rtsp camera url is: rtsp://[USER]:[PWD]@192.168.1.13:554/11

Thanks a lot for your help,
Fabio

@PeteDenmark
Copy link

PeteDenmark commented Jan 26, 2023

Same issue here. I am on a fresh install og the newest Home assistant OS on an intel NUC5i5:

2023-01-23`` 13:08:39.594 ERROR (MainThread) [frontend.js.latest.202301100] https://<ha>/webrtc/video-rtc.js:313:22 Uncaught TypeError: this.ondata is not a function

Thankful for any help you might provide :)

@felipecrs
Copy link
Contributor Author

As mentioned here (#419 (comment)) this issue no longer occurs for me with go2rtc 1.1.2, at least not my cameras.

If this issue is happening for others even after upgrading go2rtc to 1.1.2, I would suggest opening a separate issue with details about your camera.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants