This repository was archived by the owner on Oct 25, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 22//
33// SPDX-License-Identifier: Apache-2.0
44
5- /* global SendStream, BidirectionalStream */
5+ /* global WebTransportBidirectionalStream */
66
77'use strict' ;
88import * as Utils from './utils.js' ;
@@ -56,9 +56,8 @@ export class Stream extends EventDispatcher {
5656 constructor ( stream , sourceInfo , attributes ) {
5757 super ( ) ;
5858 if ( ( stream && ! ( stream instanceof MediaStream ) &&
59- ! ( typeof SendStream === 'function' && stream instanceof SendStream ) &&
60- ! ( typeof BidirectionalStream === 'function' &&
61- stream instanceof BidirectionalStream ) ) ||
59+ ! ( typeof WebTransportBidirectionalStream === 'function' &&
60+ stream instanceof WebTransportBidirectionalStream ) ) ||
6261 ( typeof sourceInfo !== 'object' ) ) {
6362 throw new TypeError ( 'Invalid stream or sourceInfo.' ) ;
6463 }
@@ -82,7 +81,7 @@ export class Stream extends EventDispatcher {
8281 } ) ;
8382 }
8483 /**
85- * @member {MediaStream | SendStream | BidirectionalStream | undefined} stream
84+ * @member {MediaStream | WebTransportBidirectionalStream | undefined} stream
8685 * @instance
8786 * @memberof Owt.Base.Stream
8887 * @see {@link https://www.w3.org/TR/mediacapture-streams/#mediastream|MediaStream API of Media Capture and Streams }
You can’t perform that action at this time.
0 commit comments