You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a video file without audio and I want to pass
public DecoderContext.ExternalStreamOpenedArgs Open(ExternalStream extStream,bool resync = true,bool defaultAudio = true,int streamIndex = -1); method adds ExternalAudioStream for synchronous playback. I found that when I added multiple ExternalAudioStreams, the last one always took effect, and there was no expected effect of all AudioStreams playing at the same time. I would like to ask if there is any way to add multiple ExternalAudioStreams at the same time and take effect at the same time
The text was updated successfully, but these errors were encountered:
Hi @Lizhengbo0304, if your question is 'Can Flyleaf play more than one audio streams at the same time?' then the answer is 'No'. I would be interesting in your case as I'm planning to support this in v4. I remember someone in the past, wanted to play desktop sound and microphone at the same time for example. You might be able to achieve this by using two players but you will need to handle the resync between them.
@SuRGeoNix Thank you very much for your response. Since I have quite a few audio files to play, creating multiple players just for the sake of playing sound seems resource-intensive to me. For now, I've temporarily used FFMPEG to merge all the audio files into one and then play it using Open(ExternalStream extStream,bool resync = true,bool defaultAudio = true,int streamIndex = -1); method, which achieves my goal. Looking forward to the V4 version.
SuRGeoNix
changed the title
Questions about ExternalAudioStream
Play/Merge multiple audio streams with a single player
Jan 14, 2024
I have a video file without audio and I want to pass
public DecoderContext.ExternalStreamOpenedArgs Open(ExternalStream extStream,bool resync = true,bool defaultAudio = true,int streamIndex = -1); method adds ExternalAudioStream for synchronous playback. I found that when I added multiple ExternalAudioStreams, the last one always took effect, and there was no expected effect of all AudioStreams playing at the same time. I would like to ask if there is any way to add multiple ExternalAudioStreams at the same time and take effect at the same time
The text was updated successfully, but these errors were encountered: