Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[iOS] ShouldAutoPlay=false should not auto play #954

Merged
merged 2 commits into from
Feb 2, 2023
Merged

[iOS] ShouldAutoPlay=false should not auto play #954

merged 2 commits into from
Feb 2, 2023

Conversation

jfversluis
Copy link
Member

Description of Change

Adds a bit of logic to detect if ShouldAutoPlay is false and Speed is getting set for the first time. What would happen is: Source is getting set which checks if it should start auto playing (which it shouldn't), then we set the Speed and whenever Speed is more than 0, it would still start playing.

This should overcome that. I checked Windows and it isn't happening there. That's why I didn't make it a more global solution (because Android already has something similar as well).

Linked Issues

PR Checklist

@jfversluis jfversluis added the 📽️ MediaElement Issue/PR that has to do with MediaElement label Feb 1, 2023
@jfversluis jfversluis changed the title Update MediaManager.macios.cs [iOS] ShouldAutoPlay=false should not auto play Feb 1, 2023
@jfversluis jfversluis merged commit d50502a into main Feb 2, 2023
@jfversluis jfversluis deleted the fix-943 branch February 2, 2023 12:23
@github-actions github-actions bot locked and limited conversation to collaborators Nov 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
📽️ MediaElement Issue/PR that has to do with MediaElement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] MediaElement 1.0.1. ShouldAutoPlay = False not working on iOS
3 participants