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

[BUG] Media Element - Platform Controls Hidden on iOS 16+ #1259

Closed
2 tasks done
bradencohen opened this issue Jun 21, 2023 · 3 comments
Closed
2 tasks done

[BUG] Media Element - Platform Controls Hidden on iOS 16+ #1259

bradencohen opened this issue Jun 21, 2023 · 3 comments
Labels
bug Something isn't working 📽️ MediaElement Issue/PR that has to do with MediaElement unverified

Comments

@bradencohen
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Did you read the "Reporting a bug" section on Contributing file?

Current Behavior

The platform controls are hidden when deploying to iOS 16+.

Using the following XAML:

<toolkit:MediaElement Source="https://storage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"
                      ShouldAutoPlay="True"
                      ShouldShowPlaybackControls="True"
                      HeightRequest="300"
                      WidthRequest="400" />

iOS 15.5, when tapped the controls show:
image

iOS 16, when tapped the controls don't show:
image

Tapping the direct center of the video seems to work as a play/pause, but that seems to just be residue of this bug.

Expected Behavior

The platform controls should be working in new versions of iOS.

Steps To Reproduce

  1. Add a MediaElement to a page:
<toolkit:MediaElement Source="https://storage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"
                      ShouldAutoPlay="True"
                      ShouldShowPlaybackControls="True"
                      HeightRequest="300"
                      WidthRequest="400" />
  1. See differences when deploying to iOS 16+ devices

Link to public reproduction project repository

https://github.com/CommunityToolkit/Maui/tree/main/samples/CommunityToolkit.Maui.Sample

Environment

- .NET MAUI CommunityToolkit: 5.2.0
- OS: iOS 16+
- .NET MAUI: .net 7

Anything else?

No response

@bradencohen bradencohen added bug Something isn't working unverified labels Jun 21, 2023
@bradencohen
Copy link
Author

Could be related: xamarin/XamarinCommunityToolkit#1927

@jfversluis
Copy link
Member

Would you be able to test the resulting NuGet package from this PR and see if that revolves your issue?

If you're not sure how to do that, please review this wiki article.

@jfversluis jfversluis added the 📽️ MediaElement Issue/PR that has to do with MediaElement label Jul 3, 2023
@bradencohen
Copy link
Author

Working like a charm, thanks so much! The controls look a little different, so I thought that was worth mentioning, but definitely seems to be fully functional over here:
image

Thanks again!

@github-actions github-actions bot locked and limited conversation to collaborators Nov 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working 📽️ MediaElement Issue/PR that has to do with MediaElement unverified
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants