I have an Upload Video and Record video on my 2 modals. The first modal is basically a selection between the two and the second modal will display the uploaded video for the former and the video for recording for the latter. The Upload Video works well on both desktop and mobile but I couldn't get to make the Record Video work on mobile - the 2nd modal simply shows another "Upload Video" and "Record Video" links, despite making a selection on the previous screen. Record Video works fine on desktop, just not on mobile. Here's my code so far:
var video_recorder;
video_recorder = new ZiggeoApi.V2.Recorder({
element: $("#video_addvideo"),
attrs: {
responsive: true,
theme: "space",
themecolor: "blue",
skipinitial: true,
countdown: 0,
timelimit: 30,
showsettings: false,
picksnapshots: false,
displaytimer: true,
primaryrecord: false
}
});
Is there a workaround on this?
EDIT: How do I add an onClick event to the buttons? This is not working for some reason:
$('.ba-videorecorder-chooser-button-1').on('click', function(e) { // Targets the Record Video button
// Do something
});