Concurrent Audio & Video with Audio
Posted: Sat Oct 03, 2015 4:06 am
I am trying to have two events happening concurrently, an audio file and a video file that happens to have its own audio, for a project to be released to iOS and Android. Initially, I was successful in achieving this by handling the video with a [mobileControlDo "myPlayer", "play"] and by handling the audio with a [play audioClip "myAudioFile"].
However, upon deciding to have the ability to do a rewind function (requiring a currentTime parameter) for the audio only playback, I had to handle the audio file also by [mobileControlDo "myaudioPlayer", "play"]. At this point although I have two separate players (a pure audio and a video with audio), they are not playing concurrently. The one that starts later takes over the audio.
I have also tried moving the video with audio to a quicktime element on the card that is triggered by [start player "qt"] but it didn't seem to solve the problem.
I have not explored soundChannel approach, but I am not sure if it will work since one of my files is a video. Also, I can't quite tell if the soundChannel is supported on the mobile platforms.
Your suggestions for tackling this setup will be appreciated.
However, upon deciding to have the ability to do a rewind function (requiring a currentTime parameter) for the audio only playback, I had to handle the audio file also by [mobileControlDo "myaudioPlayer", "play"]. At this point although I have two separate players (a pure audio and a video with audio), they are not playing concurrently. The one that starts later takes over the audio.
I have also tried moving the video with audio to a quicktime element on the card that is triggered by [start player "qt"] but it didn't seem to solve the problem.
I have not explored soundChannel approach, but I am not sure if it will work since one of my files is a video. Also, I can't quite tell if the soundChannel is supported on the mobile platforms.
Your suggestions for tackling this setup will be appreciated.