fix(24-01): correct recording method name in JKSessionScreen
- Change StartMediaRecording to StartRecording with unpacked params - Unpack videoType, recordChat, recordFramerate from params object - Match legacy recordingModel.js signature for C++ client
This commit is contained in:
parent
45aeb04eb2
commit
6602643127
|
|
@ -876,8 +876,12 @@ const JKSessionScreen = () => {
|
|||
const currentRecordingId = recording.id;
|
||||
// console.debug("Recording started with ID: ", currentRecordingId);
|
||||
const groupedTracks = groupTracksToClient(recording);
|
||||
// Unpack params for C++ client (matches legacy recordingModel.js signature)
|
||||
const recordVideo = params.videoType || 0;
|
||||
const recordChat = params.recordChat ? 1 : 0;
|
||||
const recordFramerate = 0;
|
||||
try {
|
||||
await jamClient.StartMediaRecording(currentRecordingId, groupedTracks, params);
|
||||
await jamClient.StartRecording(currentRecordingId, groupedTracks, recordVideo, recordChat, recordFramerate);
|
||||
} catch (error) {
|
||||
// console.error("Error starting media recording:", error);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue