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.
Concurrent Audio & Video with Audio
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Concurrent Audio & Video with Audio
I have tried now to switching to mobilePlaySoundOnChannel approach for the audio file and it works fine concurrently with a video(with audio) that is playing via a mobileControlDo "myPlayer", "play". I also realize now that mobilePlaySoundOnChannel does work on both mobile platforms. The catch is I have not seen any currentTime parameter support (to do a rewind function) for mobilePlaySoundOnChannel… Any guidance to enable simultaneous audio, and video+audio while having the ability to rewind the audio portion will be appreciated...