Play video and audio at the same time in Ionic Hybrid app - ionic-framework

I am using Ionic 3 to build a hybrid app.
I have both video and audio file saved in phone local storage.
The video is played in html5 video element.
The audio can be played either in html5 audio element or Ionic Native Media plugin.
I want to:
mute the video (works)
play video and audio at the same time (not working).
It seems that the system does not allow two media resources to run at the same time.
Any suggestions?
Thanks,
D

Related

Record Audio from an in app video in Ionic

I have some videos coming from an API's response. I need a button to start recording the audio from the selected video for 30 seconds and get the file version of that audio to use it further.
I am already using this.audio.startRecord(); from Media Plugin but that records outside audio from phone's mic. It also stops the video that is playing on its own.

Google Drive video embedded on website, PC and Android can play the video , iPhone cannot play the video

I use Google Drive video to embed on website. I can play the MP4 video on PC and Android phone. But I cannot play the video on iPhone. I don't know why.
Shall I convert the mp4 video to other format and code to be suitable for iphone?

Play an audio with the preloading concept

I am creating a media player. Where I want an audio file to be played with the preloading concept. I am trying to use ionic preloading plugins, but they only work with local storage file not if the audio URL starts with HTTPS:
Can anyone help me with this?

Web Audio API: How to keep music playing when iphone is off?

The context is: iOS 9.3.2 Safari.
I'm making audio visualization on a web page. If i use the <audio> tag, play it and turn off the iphone then the audio keeps playing. But Safari doesn't support Web Audio API through streaming - AudioContext.createMediaElementSource() - so i have to buffer and decode the entire audio file in order to visualize it - AudioContext.createBufferSource().
In this case audio stops playing when i turn off the iphone.
My current solution is to add, besides createBufferSource, the <audio> tag with a tiny silent mp3 source file that loops all the time. In this case everything works fine - the iphone, when turned off, plays both the silent mp3 & the buffered real mp3.
The question: Is there a more straightforward solution (meta tags, manifest, etc.)?
btw Android 5.1 Chrome keeps playing the buffered audio as is and desktop Safari supports createMediaElementSource

Auto launch the video player in Android from the browser like an iPhone does

I have just created and iPhone web app, which has some x264 (mp4) video files on it. When I link directly to the file on the iPhone and the user taps the link, the video player is loaded and the video starts playing.
Using the app on an Android phone causes the browser to download the video instead of just playing it. Is there a way to force a video player to just boot up and play the video not download it?
Thanks in advance.
You should know that Android is quite strict regarding the video streams that you can stream. To be able to watch a stream a video (progressively watch and download) the video container must be correctly formatted.
There are many ways to create a container suitable for progressive streaming. You can look it up here: http://groups.google.com/group/android-beginners/browse_thread/thread/2a801ce5f71b5aaf?pli=1
I have successfully created a streamable video. Try to open it from your browser: http://students.mimuw.edu.pl/~nh209484/Video000.3gp