Skip to content

ExceptionsManager.js:82 Exception '*** -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array' was thrown while invoking merge on target RNVideoEditor with two video params params  #13

@KirtiN10

Description

@KirtiN10

i am facing this exception while conbining two videos ExceptionsManager.js:82 Exception '*** -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array' was thrown while invoking merge on target RNVideoEditor with params (
(
"file:///var/mobile/Containers/Data/Application/59F35056-D04B-4E7D-9372-887D4613676D/Library/Caches/Camera/41DDDEC2-5F6B-46E4-BB57-AFF7448628D6.mov",
"file:///var/mobile/Containers/Data/Application/59F35056-D04B-4E7D-9372-887D4613676D/Library/Caches/Camera/8FF7C936-8433-45E5-8310-6B5D2C466FF6.mov"
),
4208,
4209
)

my code is

if (this.state.videosData[0] && this.state.videosData[1]) {
let v1 = this.state.videosData[0].replace("%2540", "%40").replace("%252F", "%2F");
let v2 = this.state.videosData[1].replace("%2540", "%40").replace("%252F", "%2F");;
RNVideoEditor.merge(
[v1, v2],
(results) => {
console.log('Error: ' + results);
SRecorder.stopRecording();
},
(results, file) => {
console.log('Success merge video: ' + results + " file: " + file);

								}
							);

when i try to combine
let v1 = this.state.videosData[0].replace("%2540", "%40").replace("%252F", "%2F");
let v2 = this.state.videosData[0].replace("%2540", "%40").replace("%252F", "%2F");
then merge successfully same videos but i want to merge two different videos, Please give solution for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions