Replies: 2 comments 3 replies
-
I have issue . when i try to use HTTPS with WHIP url |
Beta Was this translation helpful? Give feedback.
0 replies
-
Are you actually connecting to LOCALHOST as the hostname? and is localhost in your certificate? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
Hi there,
I am currently trying to stream via WebRTC using WHIP (WebRTC-Hybrid Interactivity Protocol) with MediaMTX. The stream works fine over HTTP (http://localhost:8889/mystream/whip), but when I enable WebRTC encryption (webrtcEncryption: yes), I encounter an issue where OBS fails to connect to the server.
Problem:
Without encryption (webrtcEncryption: no), streaming via WHIP works perfectly fine with the URL http://localhost:8889/mystream/whip.
With encryption (webrtcEncryption: yes), I’ve updated the stream URL to https://localhost:8889/mystream/whip, but OBS fails to connect.
Steps Taken:
Enabled webrtcEncryption: yes in the mediamtx.yml configuration.
Generated SSL/TLS certificates using the following commands:
bash
Copy code
openssl genrsa -out server.key 2048
openssl req -new -x509 -sha256 -key server.key -out server.crt -days 3650
Updated the mediamtx.yml file to include the paths to the certificates:
yaml
Copy code
webrtcEncryption: yes
webrtcServerKey: server.key
webrtcServerCert: server.crt
Restarted the MediaMTX server.
Updated OBS stream URL to https://localhost:8889/mystream/whip.
Observed Behavior:
Streaming works fine over HTTP when webrtcEncryption: no.
When enabling encryption (webrtcEncryption: yes), OBS fails to connect using the updated https://localhost:8889/mystream/whip URL.
The MediaMTX server log shows no issues related to the connection, and the webrtcEncryption: yes setting is applied.
What I've Tried:
Checked the certificates to ensure they are correctly placed.
Made sure OBS can trust the self-signed certificate (no errors from the browser).
Verified the mediamtx.yml configuration for any misconfigurations.
Questions:
Are there any additional configurations I need to enable for WebRTC encryption to work correctly with WHIP?
Are there any logs or debugging tips to help pinpoint why the connection fails with HTTPS?
Any help or guidance would be greatly appreciated!
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions