Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit 146fcf5

Browse files
authored
Rename WebTransportBidirectionalStream due to spec change. (#527)
1 parent bfdacdd commit 146fcf5

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/sdk/base/stream.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// SPDX-License-Identifier: Apache-2.0
44

5-
/* global SendStream, BidirectionalStream */
5+
/* global WebTransportBidirectionalStream */
66

77
'use strict';
88
import * 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}

0 commit comments

Comments
 (0)