@d-id/client-sdk 1.0.19-beta.7 → 1.0.19-beta.9
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SupportedStreamScipt } from '../../../types/StreamScript';
|
|
2
2
|
import { Auth } from '../../auth';
|
|
3
|
-
import { SendStreamPayloadResponse,
|
|
3
|
+
import { SendStreamPayloadResponse, StreamingState } from '../../stream';
|
|
4
4
|
import { Agent } from './agent';
|
|
5
5
|
import { ChatResponse, Message, RatingEntity, RatingPayload } from './chat';
|
|
6
6
|
/**
|
|
@@ -30,7 +30,7 @@ export declare enum ChatProgress {
|
|
|
30
30
|
}
|
|
31
31
|
export type ChatProgressCallback = (progress: ChatProgress, data: string) => void;
|
|
32
32
|
export type ConnectionStateChangeCallback = (state: RTCIceConnectionState) => void;
|
|
33
|
-
export type VideoStateChangeCallback = (state: StreamingState,
|
|
33
|
+
export type VideoStateChangeCallback = (state: StreamingState, data: any) => void;
|
|
34
34
|
interface ManagerCallbacks {
|
|
35
35
|
/**
|
|
36
36
|
* Optional callback will be triggered each time the RTC connection changes state
|
|
@@ -41,7 +41,7 @@ interface ManagerCallbacks {
|
|
|
41
41
|
* Optional callback function that will be triggered each time video events happen
|
|
42
42
|
* @param state
|
|
43
43
|
*/
|
|
44
|
-
onVideoStateChange?(state: StreamingState): void;
|
|
44
|
+
onVideoStateChange?(state: StreamingState, data?: any): void;
|
|
45
45
|
/**
|
|
46
46
|
* Callback function that will be triggered each time the video stream starts or stops to update html element on webpage
|
|
47
47
|
* Required callback for SDK
|
|
@@ -16,7 +16,7 @@ export declare enum StreamEvents {
|
|
|
16
16
|
export interface ManagerCallbacks {
|
|
17
17
|
onMessage?: (event: string, data: string) => void;
|
|
18
18
|
onConnectionStateChange?: (state: RTCIceConnectionState) => void;
|
|
19
|
-
onVideoStateChange?: (state: StreamingState,
|
|
19
|
+
onVideoStateChange?: (state: StreamingState, data?: any) => void;
|
|
20
20
|
onSrcObjectReady?: (value: MediaStream) => void;
|
|
21
21
|
}
|
|
22
22
|
export type ManagerCallbackKeys = keyof ManagerCallbacks;
|