fix(local-recording) Fix native (#11622)

This commit is contained in:
Robert Pintilii 2022-06-06 13:25:36 +01:00 committed by GitHub
parent 3af782f894
commit 1f342b79a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,41 @@
interface IReduxStore {
dispatch: Function;
getState: Function;
}
interface ILocalRecordingManager {
addAudioTrackToLocalRecording: (track: MediaStreamTrack) => void;
stopLocalRecording: () => void;
startLocalRecording: (store: IReduxStore) => void;
isRecordingLocally: () => boolean;
}
const LocalRecordingManager: ILocalRecordingManager = {
/**
* Adds audio track to the recording stream.
*/
addAudioTrackToLocalRecording(track) {
},
/**
* Stops local recording.
* */
stopLocalRecording() {
},
/**
* Starts a local recording.
*/
async startLocalRecording(store) {
},
/**
* Whether or not we're currently recording locally.
*/
isRecordingLocally() {
return false;
}
};
export default LocalRecordingManager;

View File

@ -221,6 +221,7 @@ function getConfig(options = {}) {
],
extensions: [
'.web.js',
'.web.ts',
// Typescript:
'.tsx',