UnityPlugin-AVProVideo
UnityPlugin-AVProVideo copied to clipboard
[macOS] SetAudioSource not working
Unity version
2022.3.20f1
Unity editor platform
macOS
AVPro Video edition
Core
AVPro Video version
3.2.7
Device hardware
M2 pro
Which macOS version are you using?
15.5
Texture format
BGRA
Audio output
Unity
Any other Media Player component configuration required to reproduce the issue.
No response
Which output component(s) are you using?
No response
Any other component configuration required to reproduce the issue.
No response
The issue
I have a MediaPlayer component with an AudioOutput component and AudioSource component on the same GameObject. I want to be able to change the audioSource that is used by the player at runtime, and tried calling mediaPlayer.SetAudioSource(audioSource); audioOutput.SetAudioSource(audioSource); I tried calling it before or after OpenMedia. In all cases nothing seem to change, and the default AudioSource on the gameobject is being used. Is this supported, and how can I make it work?
Media information
No response
Log output
What are you trying to achieve by switching AudioSource?