UnityPlugin-AVProVideo
UnityPlugin-AVProVideo copied to clipboard
[Windows] Changing MediaPlayer.PlaybackRate and switching to another video
Unity version
2022.3.24f1
Unity editor platform
Windows
AVPro Video edition
Ultra
AVPro Video version
3.2.0
Device hardware
i5-10400F 1050 Ti 32 GB RAM
Which Windows version are you using?
11
Graphics API
D3D 11
Video API
Media Foundation
Audio output
System Direct
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.
Default configured MediaPlayer component in examples. AVProVideo -> Demos -> Scenes -> Demo_MediaPlayer MediaPlayer GameObject
The issue
The changed video speed of MediaPlayer is not saved when switching to another video. Although, the value written in the inspector is correct and MediaPlayer.PlaybackRate sets the correct value in the code on start next video.
Steps to reproduce.
- Load any video in SampleMedia folder
- Change video playback rate throught MediaPlayer.PlaybackRate, for example 0.5
- Load another video in SampleMedia folder
You will see that Playback Rate value in the inspector is 0.5. Also, if you set breakpoint in MediaPlayer.PlaybackRate, it sets correct value 0.5. But video will play in 1 speed
Media information
No response
Log output