Closed Last8Exile closed 3 weeks ago
Workaround: creating new player each time opening video fixes the issue. Simple copy and destroy approach:
MediaPlayer _player;
...
var oldPlayer = _player;
_player = Instantiate(oldPlayer);
SetReferencesAndResubscribeToEventsInExternalComponents(_player);
Destroy(oldPlayer.gameObject);
Thanks, we have received your email
Workaround with recreating players somehow randomly freezes main thread completly.
It freezes somewhere near executing MediaPlayer.OnDestroy. If I don't destoy previous MediaPlayer instances and only disable them - there is no freeze. I can't reproduce it on Demo project and ran out of time to investigate.
A fix for this is offered in v3.0.2 (which we are hoping to release today)
AVPro Video version 3.0.2 has been released. Please let us know if it has not fixed your issue.
Describe the issue We using AudioMode: Unity. First video play audio through Unity. All further videos play audio bypassing Unity.
We use additional sound processing on Unity side (spatialization, 5.1 to stereo mixing, gloabal volume control through mixer groups) and rely on AudioMode: Unity working correctly. Workaround would be helpfil.
Your Setup (please complete the following information):
To Reproduce