@@ -80,6 +80,24 @@ class ConferenceClientConfiguration { // eslint-disable-line no-unused-vars
80
80
* }
81
81
*/
82
82
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 ;
83
101
}
84
102
}
85
103
@@ -401,7 +419,7 @@ export const ConferenceClient = function(config, signalingImpl) {
401
419
if ( QuicConnection && token . webTransportUrl ) {
402
420
quicTransportChannel = new QuicConnection (
403
421
token . webTransportUrl , resp . webTransportToken ,
404
- createSignalingForChannel ( ) ) ;
422
+ createSignalingForChannel ( ) , config . webTransportConfiguration ) ;
405
423
}
406
424
resolve ( new ConferenceInfo ( resp . room . id , Array . from ( participants
407
425
. values ( ) ) , Array . from ( remoteStreams . values ( ) ) , me ) ) ;
0 commit comments