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

Add PiP support on iOS - Events and Page #75

Merged
merged 19 commits into from
Dec 1, 2023
Merged

Add PiP support on iOS - Events and Page #75

merged 19 commits into from
Dec 1, 2023

Conversation

123mpozzi
Copy link
Contributor

@123mpozzi 123mpozzi commented Nov 27, 2023

Support iOS-related Picture-in-Picture (PiP) events.
And add a new sample Page which will be used to test the upcoming PiP feature.

Additions

Events

  • PictureInPictureEnter which is emitted when the player view is about to enter Picture-in-Picture mode.
  • PictureInPictureExit which is emitted when the player view is about to exit Picture-in-Picture mode
  • PictureInPictureEntered which is emitted when the player view finishes entering Picture-in-Picture mode.
  • PictureInPictureExited which is emitted when the player view finishes exiting Picture-in-Picture mode.

Sample Page

  • PictureInPicture page to test PiP and show how it can be integrated and used (iOS-only for now)

Testing

Apply pipEvents.patch to force-enable PiP on iOS side.
Then open the new Picture-in-Picture sample page and check for the added events being fired in the output console when using the native UI button.

@123mpozzi 123mpozzi self-assigned this Nov 27, 2023
@123mpozzi 123mpozzi changed the title Add PiP support on iOS Add PiP support on iOS - Events and Page Nov 28, 2023
@123mpozzi 123mpozzi requested a review from hawk23 November 30, 2023 15:58
@123mpozzi 123mpozzi marked this pull request as ready for review November 30, 2023 15:58
Copy link
Collaborator

@hawk23 hawk23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Just a few remarks

example/lib/pages/home.dart Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
example/lib/pages/picture_in_picture.dart Outdated Show resolved Hide resolved
example/lib/pages/picture_in_picture.dart Outdated Show resolved Hide resolved
@123mpozzi 123mpozzi requested a review from hawk23 December 1, 2023 08:53
Copy link
Collaborator

@hawk23 hawk23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 Nice!

example/lib/pages/home.dart Outdated Show resolved Hide resolved
example/lib/pages/picture_in_picture.dart Outdated Show resolved Hide resolved
@123mpozzi 123mpozzi merged commit 6e717d5 into main Dec 1, 2023
3 checks passed
@123mpozzi 123mpozzi deleted the feature/pip-ios branch December 1, 2023 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants