fix(local-recording) Fix native (#11622)
This commit is contained in:
parent
3af782f894
commit
1f342b79a8
|
@ -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;
|
|
@ -221,6 +221,7 @@ function getConfig(options = {}) {
|
|||
],
|
||||
extensions: [
|
||||
'.web.js',
|
||||
'.web.ts',
|
||||
|
||||
// Typescript:
|
||||
'.tsx',
|
||||
|
|
Loading…
Reference in New Issue