Skip to content

feat: [macOS] Support media player - #3021

Merged
jeromelaban merged 9 commits into
unoplatform:masterfrom
MartinZikmund:dev/mazi/mediaplayer-macos
Jul 10, 2020
Merged

jeromelaban merged 9 commits into
unoplatform:masterfrom
MartinZikmund:dev/mazi/mediaplayer-macos

Conversation

@MartinZikmund

Copy link
Copy Markdown
Member

GitHub Issue (If applicable): #626, closes: #3020

PR Type

What kind of change does this PR introduce?

  • Feature

What is the current behavior?

Not supported.

What is the new behavior?

Supported.

PR Checklist

Please check if your PR fulfills the following requirements:

Other information

Internal Issue (If applicable):

@gitpod-io

gitpod-io Bot commented Apr 17, 2020 •

Copy link
Copy Markdown

@MartinZikmund MartinZikmund self-assigned this Apr 17, 2020
@MartinZikmund MartinZikmund mentioned this pull request May 2, 2020
1 of 8 tasks
@MartinZikmund
MartinZikmund marked this pull request as ready for review May 2, 2020 11:51
@jeromelaban

Copy link
Copy Markdown
Member

Thanks @MartinZikmund !

@MartinZikmund
MartinZikmund force-pushed the dev/mazi/mediaplayer-macos branch from 22bd36e to efb6b08 Compare May 4, 2020 20:06
@MartinZikmund MartinZikmund added the ready-to-merge Automatically merge the PR once all '.mergify.yml' policies are met label May 5, 2020
…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
@agneszitte

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@CLAassistant

CLAassistant commented Jun 10, 2020 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@ajpinedam

Copy link
Copy Markdown
Contributor

@MartinZikmund could you please rebase master? Thanks :)

@MartinZikmund

Copy link
Copy Markdown
Member Author

@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
@MartinZikmund

Copy link
Copy Markdown
Member Author

@ajpinedam Merged 👍

{
availableSize.Width = availableSize.Width;
availableSize.Height = availableSize.Width / _currentRatio;
if (_currentRatio != 0)

Copy link
Copy Markdown
Member

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 :)

}
}

internal void DisplayFullscreen(UIElement element)

Copy link
Copy Markdown
Member

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 ?

@ajpinedam

Copy link
Copy Markdown
Contributor

@MartinZikmund thank you!. The CI is complaining, I will be looking into those issues and updating the PR.

@jeromelaban
jeromelaban merged commit 16a732b into unoplatform:master Jul 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge Automatically merge the PR once all '.mergify.yml' policies are met

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[macOS] Media player

6 participants