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

WebRTC Card with external go2rtc server #798

Open
rsurgiewicz opened this issue Jan 30, 2025 · 1 comment
Open

WebRTC Card with external go2rtc server #798

rsurgiewicz opened this issue Jan 30, 2025 · 1 comment
Labels
question Further information is requested

Comments

@rsurgiewicz
Copy link

rsurgiewicz commented Jan 30, 2025

Hi there,

I'm pulling my hair out because I'm out of ideas ...

I have go2rtc server in docker localIP: 192.168.5.105
I set-up one input rtsp stream named tapo1
I can access GUI and open links with stream.html via browser etc.

My Home assistant instance is 192.168.5.55
I added custom component to homeassistant manually. I've placed webrtc directory and addedd necessary .js to lovelace includes.

I've tried a number of configurations but none of them worked.
All I get is player widget with loading...

Examples that I've tried:

1

 - type: 'custom:webrtc-camera'
    url: 'tapo1'
    server: http://192.168.5.105:1984/

2

 - type: 'custom:webrtc-camera'
    url: 'rtsp://user:[email protected]:554/stream1'
    server: http://192.168.5.105:1984/

3

 - type: 'custom:webrtc-camera'
    url: 'http://192.168.5.105:1984/api/stream/webrtc?src=tapo1'

This is the result:

Image

Opening developer console I can see entries:

video-rtc.js?v=1.9.4:303 WebSocket connection to 'ws://192.168.5.**55**:8123/api/webrtc/ws?authSig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiI3ZTUyMWVlN2QxZjM0OWU2ODk0NmNjM2Q3Y2I4NzYxMCIsInBhdGgiOiIvYXBpL3dlYnJ0Yy93cyIsInBhcmFtcyI6W10sImlhdCI6MTczODI2MjM3OCwiZXhwIjoxNzM4MjYyNDA4fQ.fYOUrLq5jaf2hfgFxc0-46YLDlKexglhLiD5pUnITnY&url=http%3A%2F%2F192.168.5.105%3A1984%2Fstream.html%3Fsrc%3Dtapo1%26mode%3Dwebrtc' failed:

So it looks like it tries to connect to home assistant instance despite server directive?

Is it a bug or am I doing something wrong?

@AlexxIT AlexxIT added the question Further information is requested label Jan 31, 2025
@AlexxIT
Copy link
Owner

AlexxIT commented Jan 31, 2025

Your configs 1 and 2 are correct. They should work.
Your config 3 is incorrect. You are showing an error for this particular config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants