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

[video_player] Darwin implementation cleanup #6507

Merged
merged 4 commits into from
Apr 12, 2024

Conversation

stuartmorgan
Copy link
Contributor

Does some cleanup/improvements to the iOS/macOS implementation in preparation for future work:

  • Modernizes the Pigeon API. The current version dates from when methods could only take and return a single class object, so had wrapper classes for everything that are no longer needed.
  • Removes unnecessary branching for iOS and macOS by enabling the new frame checking logic for iOS. This was only there to avoid coupling iOS behavioral changes to enabling initial macOS support.
  • Removes an async workaround that says it's for a race that was fixed in the engine a long time ago (far longer than our oldest supported Flutter version).
  • Resolves a TODO about unregistering at engine shutdown, as it's been supported on stable for quite a while now.

Fixes flutter/flutter#138427

Pre-launch Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

return result;
- (nullable NSNumber *)positionForPlayer:(NSInteger)textureId error:(FlutterError **)error {
FVPVideoPlayer *player = self.playersByTextureId[@(textureId)];
return @([player position]);
Copy link
Contributor

Choose a reason for hiding this comment

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

should this be return player ? @([player position]) : nil given the nullable return type?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@stuartmorgan stuartmorgan added the autosubmit Merge PR when tree becomes green via auto submit App label Apr 12, 2024
@auto-submit auto-submit bot merged commit fc47eb7 into flutter:main Apr 12, 2024
78 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 15, 2024
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Apr 15, 2024
flutter/packages@78f684c...6698b2d

2024-04-14 [email protected] Fix error in markdown parsing image dimensions (flutter/packages#6518)
2024-04-12 [email protected] [Many] Bump to min minSdkVersion of 19 across all plugins (flutter/packages#6506)
2024-04-12 [email protected] [video_player] Darwin implementation cleanup (flutter/packages#6507)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC [email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
gilnobrega pushed a commit to gilnobrega/flutter that referenced this pull request Apr 22, 2024
flutter/packages@78f684c...6698b2d

2024-04-14 [email protected] Fix error in markdown parsing image dimensions (flutter/packages#6518)
2024-04-12 [email protected] [Many] Bump to min minSdkVersion of 19 across all plugins (flutter/packages#6506)
2024-04-12 [email protected] [video_player] Darwin implementation cleanup (flutter/packages#6507)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC [email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
TecHaxter pushed a commit to TecHaxter/flutter_packages that referenced this pull request May 22, 2024
Does some cleanup/improvements to the iOS/macOS implementation in preparation for future work:
- Modernizes the Pigeon API. The current version dates from when methods could only take and return a single class object, so had wrapper classes for everything that are no longer needed.
- Removes unnecessary branching for iOS and macOS by enabling the new frame checking logic for iOS. This was only there to avoid coupling iOS behavioral changes to enabling initial macOS support.
- Removes an async workaround that says it's for a race that was fixed in the engine a long time ago (far longer than our oldest supported Flutter version).
- Resolves a TODO about unregistering at engine shutdown, as it's been supported on `stable` for quite a while now.

Fixes flutter/flutter#138427
arc-yong pushed a commit to Arctuition/packages-arc that referenced this pull request Jun 14, 2024
Does some cleanup/improvements to the iOS/macOS implementation in preparation for future work:
- Modernizes the Pigeon API. The current version dates from when methods could only take and return a single class object, so had wrapper classes for everything that are no longer needed.
- Removes unnecessary branching for iOS and macOS by enabling the new frame checking logic for iOS. This was only there to avoid coupling iOS behavioral changes to enabling initial macOS support.
- Removes an async workaround that says it's for a race that was fixed in the engine a long time ago (far longer than our oldest supported Flutter version).
- Resolves a TODO about unregistering at engine shutdown, as it's been supported on `stable` for quite a while now.

Fixes flutter/flutter#138427
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App p: video_player platform-ios platform-macos
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[video_player] Investigate removing skipBufferAvailabilityCheck from iOS implementation
2 participants