Concurrent Audio & Video with Audio

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
punchcard
Posts: 19
Joined: Mon Sep 28, 2015 5:41 am

Concurrent Audio & Video with Audio

Post by punchcard » 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.

punchcard
Posts: 19
Joined: Mon Sep 28, 2015 5:41 am

Re: Concurrent Audio & Video with Audio

Post by punchcard » Tue Oct 06, 2015 7:01 pm

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...

Post Reply