2015-11-29, 11:48
I want to play audio files at certain time. If the video was playing, I want to pause the video, play the audio and then resume the video.
I could not find a way to achieve this.
One way I am thinking of doing is:
Check if video is playing. If so, store the file name and position. (How to get this information?)
Stop player.
Play audio file.
Start player with stored file name and seek to the position.
Is there any better way to do this?
I could not find a way to achieve this.
One way I am thinking of doing is:
Check if video is playing. If so, store the file name and position. (How to get this information?)
Stop player.
Play audio file.
Start player with stored file name and seek to the position.
Is there any better way to do this?