From f6e672f27fcac06af58d7ac995551893d36944ce Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Thu, 26 Jan 2023 17:28:24 +0530 Subject: [PATCH] webrtc examples: Use webrtc.gstreamer.net Actually just a CNAME to webrtc.nirbheek.in for now, but it allows replacement / hosting without my involvement, so reduces the bus factor. Part-of: --- subprojects/gst-examples/webrtc/README.md | 4 ++-- .../gst-examples/webrtc/android/app/src/main/jni/webrtc.c | 2 +- .../webrtc/android/app/src/main/res/layout/main.xml | 2 +- .../webrtc/multiparty-sendrecv/gst-rust/src/main.rs | 4 ++-- .../webrtc/multiparty-sendrecv/gst/mp-webrtc-sendrecv.c | 2 +- .../sendrecv/gst-java/src/main/java/WebrtcSendRecv.java | 4 ++-- subprojects/gst-examples/webrtc/sendrecv/gst-rust/src/main.rs | 4 ++-- .../gst-examples/webrtc/sendrecv/gst-sharp/WebRTCSendRecv.cs | 2 +- .../gst-examples/webrtc/sendrecv/gst/webrtc-sendrecv.c | 2 +- .../gst-examples/webrtc/sendrecv/gst/webrtc_sendrecv.py | 2 +- 10 files changed, 14 insertions(+), 14 deletions(-) diff --git a/subprojects/gst-examples/webrtc/README.md b/subprojects/gst-examples/webrtc/README.md index 7818e70151..f09709deba 100644 --- a/subprojects/gst-examples/webrtc/README.md +++ b/subprojects/gst-examples/webrtc/README.md @@ -61,7 +61,7 @@ Build outputs will be placed in the directory `_builddir`. ### sendrecv: Send and receive audio and video -* Serve the `js/` directory on the root of your website, or open https://webrtc.nirbheek.in +* Serve the `js/` directory on the root of your website, or open https://webrtc.gstreamer.net - The JS code assumes the signalling server is on port 8443 of the same server serving the HTML * Open the website in a browser and ensure that the status is "Registered with server, waiting for call", and note the `id` too. @@ -93,7 +93,7 @@ You can pass a --server argument to all versions, for example `--server=wss://12 `./gradlew build`\ `java -jar build/libs/gst-java.jar --peer-id=ID` with the `id` from the browser. -You can optionally specify the server URL too (it defaults to wss://webrtc.nirbheek.in:8443): +You can optionally specify the server URL too (it defaults to wss://webrtc.gstreamer.net:8443): `java -jar build/libs/gst-java.jar --peer-id=1 --server=ws://localhost:8443` diff --git a/subprojects/gst-examples/webrtc/android/app/src/main/jni/webrtc.c b/subprojects/gst-examples/webrtc/android/app/src/main/jni/webrtc.c index c22eaafc65..b272dd9355 100644 --- a/subprojects/gst-examples/webrtc/android/app/src/main/jni/webrtc.c +++ b/subprojects/gst-examples/webrtc/android/app/src/main/jni/webrtc.c @@ -38,7 +38,7 @@ GST_DEBUG_CATEGORY_STATIC (debug_category); #define GST_CAT_DEFAULT debug_category -#define DEFAULT_SIGNALLING_SERVER "wss://webrtc.nirbheek.in:8443" +#define DEFAULT_SIGNALLING_SERVER "wss://webrtc.gstreamer.net:8443" #define GET_CUSTOM_DATA(env, thiz, fieldID) (WebRTC *)(gintptr)(*env)->GetLongField (env, thiz, fieldID) #define SET_CUSTOM_DATA(env, thiz, fieldID, data) (*env)->SetLongField (env, thiz, fieldID, (jlong)(gintptr)data) diff --git a/subprojects/gst-examples/webrtc/android/app/src/main/res/layout/main.xml b/subprojects/gst-examples/webrtc/android/app/src/main/res/layout/main.xml index 14156bcfcd..ac3718e935 100644 --- a/subprojects/gst-examples/webrtc/android/app/src/main/res/layout/main.xml +++ b/subprojects/gst-examples/webrtc/android/app/src/main/res/layout/main.xml @@ -38,7 +38,7 @@ android:layout_height="wrap_content" android:layout_margin="8dp" android:inputType="textUri" - android:text="wss://webrtc.nirbheek.in:8443" /> + android:text="wss://webrtc.gstreamer.net:8443" />