@@ -80,6 +80,24 @@ class ConferenceClientConfiguration { // eslint-disable-line no-unused-vars
8080 * }
8181 */
8282 this . rtcConfiguration = undefined ;
83+
84+ /**
85+ * @member {?WebTransportOptions} webTransportConfiguration
86+ * @instance
87+ * @memberof Owt.Conference.ConferenceClientConfiguration
88+ * @desc It will be used for creating WebTransport.
89+ * @see {@link https://w3c.github.io/webtransport/#dictdef-webtransportoptions|WebTransportOptions of WebTransport }.
90+ * @example
91+ * // Following object can be set to conferenceClientConfiguration.webTransportConfiguration.
92+ * {
93+ * serverCertificateFingerprints: [{
94+ * value:
95+ * '00:11:22:33:44:55:66:77:88:99:AA:BB:CC:DD:EE:FF:00:11:22:33:44:55:66:77:88:99:AA:BB:CC:DD:EE:FF', // eslint-disable-line
96+ * algorithm: 'sha-256',
97+ * }],
98+ * }
99+ */
100+ this . webTransportConfiguration = undefined ;
83101 }
84102}
85103
@@ -401,7 +419,7 @@ export const ConferenceClient = function(config, signalingImpl) {
401419 if ( QuicConnection && token . webTransportUrl ) {
402420 quicTransportChannel = new QuicConnection (
403421 token . webTransportUrl , resp . webTransportToken ,
404- createSignalingForChannel ( ) ) ;
422+ createSignalingForChannel ( ) , config . webTransportConfiguration ) ;
405423 }
406424 resolve ( new ConferenceInfo ( resp . room . id , Array . from ( participants
407425 . values ( ) ) , Array . from ( remoteStreams . values ( ) ) , me ) ) ;
0 commit comments