Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
37 lines
1.3 KiB
TypeScript
37 lines
1.3 KiB
TypeScript
// Module ID: 8381
|
|
// Function ID: 8382
|
|
// Name: MediaPlayerMuteManager
|
|
// Dependencies: [17, 560, 1249, 2]
|
|
|
|
// Module 8381 (MediaPlayerMuteManager)
|
|
import get_ActivityIndicator from "module_17" /* 17 */;
|
|
import module_560 from "module_560" /* 560 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
({ NativeEventEmitter, NativeModules } = get_ActivityIndicator);
|
|
const useMediaPlayerMutedStore = module_560.create(() => ({ isMuted: false }));
|
|
const nativeEventEmitter = new NativeEventEmitter(NativeModules.MediaPlayerManager);
|
|
class MediaPlayerMuteManager {
|
|
constructor() {
|
|
return Object.assign({ muteSubscription: "r" });
|
|
}
|
|
}
|
|
const prototype = MediaPlayerMuteManager.prototype;
|
|
prototype["initialize"] = function initialize() {
|
|
this.muteSubscription = nativeEventEmitter.addListener("MediaPlayerMuteStateChanged", (isMuted) => {
|
|
isMuted = isMuted.isMuted;
|
|
isMuted(closure_1[2]).batchUpdates(() => {
|
|
state.setState({ isMuted });
|
|
});
|
|
});
|
|
};
|
|
prototype["terminate"] = function terminate() {
|
|
const muteSubscription = this.muteSubscription;
|
|
if (muteSubscription != null) {
|
|
muteSubscription.remove();
|
|
}
|
|
};
|
|
const result = size.fileFinishedImporting("modules/media_viewer/native/MediaPlayerMuteManager.tsx");
|
|
|
|
export default Object.assign({ muteSubscription: "r" });
|
|
export { useMediaPlayerMutedStore };
|