Baseflow / XamarinMediaManager

Cross platform Xamarin plugin to play and control Audio and Video
https://baseflow.com
MIT License
769 stars 306 forks source link

iOS AutoPlay Shows Previous Video #726

Open barrysohl opened 4 years ago

barrysohl commented 4 years ago

🐛 Bug Report

On iOS, with AutoPlay true, calling Play( ) after a video has previously been played, will show the last frame from the previous video until buffering on the new video is complete and play begins. This makes it momentarily look like the wrong video is being played, and is very confusing for the user.

Expected behavior

VideoView should be blank during initial buffering.

Reproduction steps

100% reproducible. Turn AutoPlay on. Play a video. Stop it. Then play a second video and notice the previous video is still shown during buffering.

Configuration

Version: MediaManager: 0.9.7 Xamarin Forms: 4.7.0 iOS: 13.5

Platform:

barrysohl commented 4 years ago

I should add that audio from the previous video is also played. It appears buffers are not being fully cleared. Is there a way to manually clear the buffers?

AswinPG commented 4 years ago

The same happens in Android too when we change the source before the first source was loaded. The previous video starts playing first and then changes to the current source.