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 2
2
//
3
3
// SPDX-License-Identifier: Apache-2.0
4
4
5
- /* global SendStream, BidirectionalStream */
5
+ /* global WebTransportBidirectionalStream */
6
6
7
7
'use strict' ;
8
8
import * as Utils from './utils.js' ;
@@ -56,9 +56,8 @@ export class Stream extends EventDispatcher {
56
56
constructor ( stream , sourceInfo , attributes ) {
57
57
super ( ) ;
58
58
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 ) ) ||
62
61
( typeof sourceInfo !== 'object' ) ) {
63
62
throw new TypeError ( 'Invalid stream or sourceInfo.' ) ;
64
63
}
@@ -82,7 +81,7 @@ export class Stream extends EventDispatcher {
82
81
} ) ;
83
82
}
84
83
/**
85
- * @member {MediaStream | SendStream | BidirectionalStream | undefined} stream
84
+ * @member {MediaStream | WebTransportBidirectionalStream | undefined} stream
86
85
* @instance
87
86
* @memberof Owt.Base.Stream
88
87
* @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