Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

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

Robert Pintilii1f342b79a86a
diff --git a/react/features/recording/components/Recording/LocalRecordingManager.native.ts b/react/features/recording/components/Recording/LocalRecordingManager.native.ts
new file mode 100644
index 0000000000..7905f2cea6
--- /dev/null
+++ b/react/features/recording/components/Recording/LocalRecordingManager.native.ts
@@ -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;
diff --git a/react/features/recording/components/Recording/LocalRecordingManager.ts b/react/features/recording/components/Recording/LocalRecordingManager.web.ts
similarity index 100%
rename from react/features/recording/components/Recording/LocalRecordingManager.ts
rename to react/features/recording/components/Recording/LocalRecordingManager.web.ts
diff --git a/webpack.config.js b/webpack.config.js
index 7836e91c6a..138190525a 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -221,6 +221,7 @@ function getConfig(options = {}) {
],
extensions: [
'.web.js',
+ '.web.ts',
// Typescript:
'.tsx',