@ikonai/sdk-react-ui 1.0.16 → 1.0.17
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/app/use-ikon-app.d.ts +16 -0
- package/index.js +976 -952
- package/package.json +1 -1
package/app/use-ikon-app.d.ts
CHANGED
|
@@ -86,6 +86,10 @@ export interface UseIkonAppOptions {
|
|
|
86
86
|
* Shared across audio and video playback.
|
|
87
87
|
*/
|
|
88
88
|
mediaSession?: MediaSessionConfig;
|
|
89
|
+
/**
|
|
90
|
+
* Enable WebRTC for audio and video transport. Default: false
|
|
91
|
+
*/
|
|
92
|
+
webRtc?: boolean;
|
|
89
93
|
}
|
|
90
94
|
/**
|
|
91
95
|
* Result returned by the useIkonApp hook.
|
|
@@ -131,6 +135,18 @@ export interface UseIkonAppResult {
|
|
|
131
135
|
* Whether the connection is ready to render UI.
|
|
132
136
|
*/
|
|
133
137
|
isReady: boolean;
|
|
138
|
+
/**
|
|
139
|
+
* WebRTC audio MediaStream (when WebRTC enabled and connected).
|
|
140
|
+
*/
|
|
141
|
+
webRtcAudioStream: MediaStream | null;
|
|
142
|
+
/**
|
|
143
|
+
* WebRTC video MediaStream (when WebRTC enabled and connected).
|
|
144
|
+
*/
|
|
145
|
+
webRtcVideoStream: MediaStream | null;
|
|
146
|
+
/**
|
|
147
|
+
* WebRTC screen share MediaStream (when WebRTC enabled and connected).
|
|
148
|
+
*/
|
|
149
|
+
webRtcScreenStream: MediaStream | null;
|
|
134
150
|
}
|
|
135
151
|
/**
|
|
136
152
|
* High-level hook that manages the entire Ikon connection lifecycle.
|