Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
28 lines
1,018 B
TypeScript
28 lines
1,018 B
TypeScript
// Module ID: 13868
|
|
// Function ID: 13869
|
|
// Name: useSelectedActiveStream
|
|
// Dependencies: [4621, 4627, 504, 2]
|
|
// Exports: default
|
|
|
|
// Module 13868 (useSelectedActiveStream)
|
|
import ChannelRTCStore from "ChannelRTCStore" /* 4621 */;
|
|
import ApplicationStreamingStore from "ApplicationStreamingStore" /* 4627 */;
|
|
|
|
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;
|
|
});
|
|
};
|