VLCMediaPlayer play multiple video source, when i stop one of the video
when I stop one of the video, error: AVAudioSession.mm:692: -[AVAudioSession setActive:withOptions:error:]: Deactivating an audio session that has running I/O. All I/O should be stopped or paused prior to deactivating the audio session. then the other video don't have voice. how should I solve the problem. I have tried to add the follow code in audiounit_ios.m static void Stop(audio_output_t *p_aout) { printf("stop-----"); NSLog(@"stop-----");
struct aout_sys_t *p_sys = p_aout->sys;
OSStatus err;
err = AudioOutputUnitStop(p_sys->au_unit);
if (err != noErr)
ca_LogWarn("AudioOutputUnitStop failed");
au_Uninitialize(p_aout, p_sys->au_unit);
err = AudioComponentInstanceDispose(p_sys->au_unit);
if (err != noErr)
ca_LogWarn("AudioComponentInstanceDispose failed");
avas_resetPreferredNumberOfChannels(p_aout);
avas_SetActive(p_aout, false,
AVAudioSessionSetActiveOptionNotifyOthersOnDeactivation);
#if (IPHONE_OS_VERSION_MIN_REQUIRED >= 60000)
[[AVAudioSession sharedInstance] setActive:NO withOptions:AVAudioSessionSetActiveOptionNotifyOthersOnDeactivation error:nil];
#else
[[AVAudioSession sharedInstance] setActive:NO error:nil];
#endif } but it doesn't help any way. and I am a new developer for vlc, hope your reply