RenderHeads / UnityPlugin-AVProVideo

AVPro Video is a multi-platform Unity plugin for advanced video playback
https://www.renderheads.com/products/avpro-video/
226 stars 28 forks source link

[iOS] AudioOutput is not working on iOS. #1231

Closed dw8869 closed 2 years ago

dw8869 commented 2 years ago

AudioOutput is not working on iOS. We develop screen recordings using NatCorder. Audio mode set to Unity in script.

MediaPlayer mediaPlayer = transform.gameObject.AddComponent<MediaPlayer>();
mediaPlayer.PlatformOptionsIOS.audioMode = MediaPlayer.OptionsApple.AudioMode.Unity;
mediaPlayer.PlatformOptionsMacOSX.audioMode = MediaPlayer.OptionsApple.AudioMode.Unity;

But, audio listener does not seem to detect a sound output.

When i playing the Demo_MediaPlayer scene in Windows Editor, there was no sound when disable AudioSource component. But, MacEditor has sound.

dw8869 commented 2 years ago

Unity: Audio is played by Unity via the AudioOutput component. HLS media is not supported and will continue to playback in system direct mode regardless of the chosen audio mode.

Okay.