Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
28 lines
1,018 B
TypeScript
28 lines
1,018 B
TypeScript
// Module ID: 13819
|
|
// Function ID: 13820
|
|
// Name: useSelectedActiveStream
|
|
// Dependencies: [4590, 4596, 504, 2]
|
|
// Exports: default
|
|
|
|
// Module 13819 (useSelectedActiveStream)
|
|
import ChannelRTCStore from "ChannelRTCStore" /* 4590 */;
|
|
import ApplicationStreamingStore from "ApplicationStreamingStore" /* 4596 */;
|
|
|
|
const require = globalThis.__r;
|
|
|
|
const require = fn;
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/video_calls/native/useSelectedActiveStream.tsx");
|
|
|
|
export default function useSelectedActiveStream(arg0) {
|
|
_require = arg0;
|
|
const items = [ChannelRTCStore, ApplicationStreamingStore];
|
|
return require("initialize").useStateFromStores(items, () => {
|
|
const selectedParticipantId = ChannelRTCStore.getSelectedParticipantId(id.id);
|
|
let activeStreamForStreamKey = null;
|
|
if (null != selectedParticipantId) {
|
|
activeStreamForStreamKey = ApplicationStreamingStore.getActiveStreamForStreamKey(selectedParticipantId);
|
|
}
|
|
return activeStreamForStreamKey;
|
|
});
|
|
};
|