Audio Video at same time


#1

I need to play video and audio at same time. For audio i use cordova media plugin, here example:

var audio = new Media(src, onSuccess, onError);

And then i need to play video, for video i use html5 tag here example:
var source = document.createElement(“source”);
source.src = value;
source.type = “video/mp4”;
videoPlayer.controls = false;
videoPlayer.appendChild(source);
videoPlayer.load();

each playback starting from button, so if i press audio playback video playback stop, and audio start and vise versa