diff --git a/package.json b/package.json index 72cc14f9..5fe4668e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "red5pro-html-sdk-testbed", - "version": "14.0.0", + "version": "14.1.0", "description": "Testbed examples for Red5 Pro HTML SDK", "main": "src/js/index.js", "repository": { diff --git a/src/page/index.html b/src/page/index.html index 0a324269..6fec0061 100644 --- a/src/page/index.html +++ b/src/page/index.html @@ -149,6 +149,10 @@

WebRTC Specific

+

+ + +


Stream Manager Specific

@@ -260,6 +264,7 @@

Mixer Specific

var rtcTransportPolicySelect = document.getElementById('rtc-transport-policy'); var rtcpMuxPolicySelect = document.getElementById('rtc-mux-policy'); var rtcSignalSocketField = document.getElementById('rtc-signal-socket-field'); + var includeResolutionOfferField = document.getElementById('include-resolution-offer-field'); var whipWhepField = document.getElementById('whipwhep-field'); var sessionHostField = document.getElementById('session-host-field'); var trickleField = document.getElementById('trickle-field'); @@ -381,6 +386,10 @@

Mixer Specific

configuration.enableChannelSignaling = rtcSignalSocketField.checked; seal(configuration); }); + includeResolutionOfferField.addEventListener('change', function () { + configuration.offerSDPResolution = includeResolutionOfferField.checked; + seal(configuration); + }); whipWhepField.addEventListener('change', () => { configuration.preferWhipWhep = whipWhepField.checked; seal(configuration); @@ -506,6 +515,7 @@

Mixer Specific

iceCredential.value = config.rtcConfiguration.iceServers[0].credential || ''; rtcCandidatePoolSize.value = config.rtcConfiguration.iceCandidatePoolSize || 0; rtcSignalSocketField.checked = config.signalingSocketOnly; + includeResolutionOfferField.checked = config.offerSDPResolution; whipWhepField.checked = config.preferWhipWhep || false; sessionHostField.checked = config.disableProxy || false; trickleField.checked = config.trickleIce || false; diff --git a/src/page/test/publishCodecSupport/index.js b/src/page/test/publishCodecSupport/index.js index 79147e20..fabf673e 100644 --- a/src/page/test/publishCodecSupport/index.js +++ b/src/page/test/publishCodecSupport/index.js @@ -223,6 +223,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. } try { targetPublisher = preferWhipWhep ? new WHIPClient() : new RTCPublisher() + targetPublisher.on('*', onPublisherEvent) await targetPublisher.initWithStream(rtcConfig, mediaStream) await targetPublisher.publish() onPublishSuccess(targetPublisher) diff --git a/src/template/partial/top-bar.hbs b/src/template/partial/top-bar.hbs index 04271423..5617aa79 100644 --- a/src/template/partial/top-bar.hbs +++ b/src/template/partial/top-bar.hbs @@ -196,7 +196,6 @@ https://www.red5.net">