27 lines
839 B
TypeScript
27 lines
839 B
TypeScript
// Metro module 4280 (f4281).
|
|
import { MediaEngineHookTypes } from "../Constants";
|
|
import Module589 from "../_bundle/Module589";
|
|
import Dispatcher from "../Dispatcher";
|
|
let c2519_1 = {};
|
|
class HookErrorStore extends Module589.Store {
|
|
static displayName = "HookErrorStore";
|
|
getHookError(a0) {
|
|
return c2519_1[a0];
|
|
}
|
|
}
|
|
const hookErrorStore = new HookErrorStore(Dispatcher, {
|
|
MEDIA_ENGINE_SET_GO_LIVE_SOURCE: function handleSetGoLiveSource() {
|
|
c2519_1 = {};
|
|
},
|
|
MEDIA_ENGINE_SOUNDSHARE_TRANSMITTING: function handleSoundshareTransmitting() {
|
|
delete c2519_1[MediaEngineHookTypes.SOUND];
|
|
},
|
|
MEDIA_ENGINE_SOUNDSHARE_FAILED: function handleSoundshareFailed(a0) {
|
|
c2519_1[MediaEngineHookTypes.SOUND] = {
|
|
errorMessage: a0.errorMessage,
|
|
errorCode: a0.errorCode
|
|
};
|
|
}
|
|
});
|
|
export default hookErrorStore;
|