@phenixrts/sdk 2023.2.2-beta.69 → 2023.2.4-beta.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/channels/debug/channels.js +74 -18
- package/channels/debug/package.json +1 -1
- package/channels/debug.private/channels.js +74 -18
- package/channels/debug.private/package.json +1 -1
- package/channels/es5.debug.private/channels.js +71 -18
- package/channels/es5.debug.private/package.json +1 -1
- package/channels/min/channels.js +1 -1
- package/channels/min/channels.js.map +1 -1
- package/channels/min/package.json +1 -1
- package/channels/min.private/channels.js +1 -1
- package/channels/min.private/channels.js.map +1 -1
- package/channels/min.private/package.json +1 -1
- package/channels/package.json +1 -1
- package/full/debug/full.js +74 -18
- package/full/debug/package.json +1 -1
- package/full/debug.private/full.js +74 -18
- package/full/debug.private/package.json +1 -1
- package/full/min/full.js +1 -1
- package/full/min/full.js.map +1 -1
- package/full/min/package.json +1 -1
- package/full/min.private/full.js +1 -1
- package/full/min.private/full.js.map +1 -1
- package/full/min.private/package.json +1 -1
- package/full/package.json +1 -1
- package/package.json +1 -1
- package/publish/debug/package.json +1 -1
- package/publish/debug/publish.js +68 -8
- package/publish/debug.private/package.json +1 -1
- package/publish/debug.private/publish.js +68 -8
- package/publish/min/package.json +1 -1
- package/publish/min/publish.js +1 -1
- package/publish/min/publish.js.map +1 -1
- package/publish/min.private/package.json +1 -1
- package/publish/min.private/publish.js +1 -1
- package/publish/min.private/publish.js.map +1 -1
- package/publish/package.json +1 -1
- package/types/environment/Parameters.d.ts +9 -0
- package/types/sdk/channels/Channel.d.ts +3 -1
- package/types/sdk/channels/Channels.d.ts +3 -1
- package/types/sdk/context/ChannelContext.d.ts +6 -2
- package/types/sdk/streaming/InsertableStreams.d.ts +3 -1
package/publish/package.json
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="dom-webcodecs" />
|
|
1
2
|
import IDisposable from '../../lang/IDisposable';
|
|
2
3
|
import ReadOnlySubject from '../../rx/ReadOnlySubject';
|
|
3
4
|
import Dimension from '../../video/Dimension';
|
|
@@ -7,9 +8,10 @@ import ChannelState from './ChannelState';
|
|
|
7
8
|
import { IRtcMonitorStatistic } from '../../rtc/RtcConnectionMonitor';
|
|
8
9
|
import { EncodedEdgeToken } from '../../edgeAuth/EncodedEdgeToken';
|
|
9
10
|
import { BitsPerSecond, Millisecond } from '../../units/Units';
|
|
11
|
+
import { IStreamTrackTransform } from '../context/ChannelContext';
|
|
10
12
|
export type ChannelOptions = {
|
|
11
13
|
targetLag?: Millisecond;
|
|
12
|
-
videoStreamTransformCallback?:
|
|
14
|
+
videoStreamTransformCallback?: IStreamTrackTransform<VideoFrame>;
|
|
13
15
|
};
|
|
14
16
|
export default class Channel implements IDisposable {
|
|
15
17
|
private readonly _logger;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
+
/// <reference types="dom-webcodecs" />
|
|
1
2
|
import Channel from './Channel';
|
|
3
|
+
import { IStreamTrackTransform } from '../context/ChannelContext';
|
|
2
4
|
import { EncodedEdgeToken } from '../../edgeAuth/EncodedEdgeToken';
|
|
3
5
|
import { Millisecond } from '../../units/Units';
|
|
4
6
|
type CreateChannelOptions = {
|
|
5
7
|
videoElement: HTMLVideoElement;
|
|
6
8
|
token: EncodedEdgeToken;
|
|
7
9
|
targetLag?: Millisecond;
|
|
8
|
-
videoStreamTransformCallback?:
|
|
10
|
+
videoStreamTransformCallback?: IStreamTrackTransform<VideoFrame>;
|
|
9
11
|
};
|
|
10
12
|
export default class Channels {
|
|
11
13
|
static createChannel(options: CreateChannelOptions): Channel;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="dom-webcodecs" />
|
|
1
2
|
import Subject from '../../rx/Subject';
|
|
2
3
|
import ChannelState from '../channels/ChannelState';
|
|
3
4
|
import Dimension from '../../video/Dimension';
|
|
@@ -6,9 +7,12 @@ import VideoTelemetry from '../../video/VideoTelemetry';
|
|
|
6
7
|
import { IRtcMonitorStatistic, IRtcStatistic } from '../../rtc/RtcConnectionMonitor';
|
|
7
8
|
import DisposableList from '../../lang/DisposableList';
|
|
8
9
|
import { BitsPerSecond, Millisecond } from '../../units/Units';
|
|
10
|
+
export interface IStreamTrackTransform<T = AudioData | VideoFrame> {
|
|
11
|
+
(chunk: T, controller: TransformStreamDefaultController<T>): void | PromiseLike<void>;
|
|
12
|
+
}
|
|
9
13
|
export type ChannelContextOptions = {
|
|
10
14
|
targetLag?: number;
|
|
11
|
-
videoStreamTransformCallback?:
|
|
15
|
+
videoStreamTransformCallback?: IStreamTrackTransform<VideoFrame>;
|
|
12
16
|
hasInsertableStreams?: boolean;
|
|
13
17
|
};
|
|
14
18
|
export default class ChannelContext {
|
|
@@ -38,7 +42,7 @@ export default class ChannelContext {
|
|
|
38
42
|
rtcAudioStatistic: IRtcStatistic;
|
|
39
43
|
rtcVideoStatistic: IRtcStatistic;
|
|
40
44
|
clearFailureCountTimeout: number;
|
|
41
|
-
videoStreamTransformCallback
|
|
45
|
+
videoStreamTransformCallback?: IStreamTrackTransform<VideoFrame>;
|
|
42
46
|
hasInsertableStreams: Subject<boolean>;
|
|
43
47
|
constructor(options?: ChannelContextOptions);
|
|
44
48
|
get streamId(): string;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
/// <reference types="dom-webcodecs" />
|
|
2
|
+
import { IStreamTrackTransform } from '../context/ChannelContext';
|
|
1
3
|
export default class InsertableStreams {
|
|
2
|
-
static setupMediaStreamTrackTransform(transform:
|
|
4
|
+
static setupMediaStreamTrackTransform(transform: IStreamTrackTransform<VideoFrame>, stream: MediaStream): MediaStream;
|
|
3
5
|
constructor();
|
|
4
6
|
}
|