-
Notifications
You must be signed in to change notification settings - Fork 762
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
feat: [macOS] Support media player #3021
feat: [macOS] Support media player #3021
Conversation
Thanks @MartinZikmund ! |
22bd36e
to
efb6b08
Compare
…yer-macos # Conflicts: # src/Uno.UWP/Generated/3.0.0.0/Windows.Media.Playback/MediaPlaybackItem.cs # src/Uno.UWP/Generated/3.0.0.0/Windows.Media.Playback/MediaPlaybackList.cs
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
@MartinZikmund could you please rebase master? Thanks :) |
Will do 👍 |
# Conflicts: # src/Uno.UI/Generated/3.0.0.0/Windows.UI.Xaml.Controls/MediaPlayerElement.cs # src/Uno.UI/Generated/3.0.0.0/Windows.UI.Xaml.Controls/MediaTransportControls.cs # src/Uno.UI/UI/Xaml/Controls/MediaPlayer/MediaTransportControls.MediaPlayer.cs # src/Uno.UI/UI/Xaml/Controls/MediaPlayer/MediaTransportControls.cs
@ajpinedam Merged 👍 |
@@ -130,7 +130,10 @@ protected override Size MeasureOverride(Size availableSize) | |||
if (double.IsNaN(Width) && double.IsNaN(Height)) | |||
{ | |||
availableSize.Width = availableSize.Width; | |||
availableSize.Height = availableSize.Width / _currentRatio; | |||
if (_currentRatio != 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! You should apply it also for the if (double.IsNaN(Height))
case :)
@@ -114,6 +137,22 @@ internal void RaiseNativeSizeChanged(CGSize size) | |||
} | |||
} | |||
|
|||
internal void DisplayFullscreen(UIElement element) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's actually not really "full screen" but "full window". Probably sufficient for now, but I don't known if it would be easy to really go full screen on mac ?
@MartinZikmund thank you!. The CI is complaining, I will be looking into those issues and updating the PR. |
GitHub Issue (If applicable): #626, closes: #3020
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Not supported.
What is the new behavior?
Supported.
PR Checklist
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Run
results.Other information
Internal Issue (If applicable):