Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Conversation

@KevinTheGray
Copy link
Contributor

@KevinTheGray KevinTheGray commented May 13, 2020

Description

@cbenhagen I basically copied your PR: #2397, and opened a new one here with changes after the big 0.10.10 update. It's still a very simple change. I see that they want XC tests, but I need some clarification on how that is expected to work.

@cyanglaz I see the PR you reference on the other PR, (#2445) but I don't understand how to run those tests. I commented on it with the issues I am seeing. If I could understand how I am expected to install the mock dependency and run the test, I could add the tests to this PR. Test added!

What this fixes

Explicitly mark texture frame available on seekTo. This is necessary since flutter/engine@6a90b7f has changed the external texture data flow from a producer-consumer model. Now ios_external_texture_gl caches previous opengl texture, if no new frame are available, it does not execute the copyPixelBuffer method, just uses cached opengl texture to draw.

Related Issues

Fixes flutter/flutter#43567

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

  • I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
  • My PR includes unit or integration tests for all changed/updated/fixed behaviors (See [Contributor Guide]).
  • All existing and new tests are passing.
  • I updated/added relevant documentation (doc comments with ///).
  • The analyzer (flutter analyze) does not report any problems on my PR.
  • I read and followed the [Flutter Style Guide].
  • The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
  • I updated pubspec.yaml with an appropriate new version according to the [pub versioning philosophy].
  • I updated CHANGELOG.md to add a description of the change.
  • I signed the [CLA].
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

Does your PR require plugin users to manually update their apps to accommodate your change?

  • Yes, this is a breaking change (please indicate a breaking change in CHANGELOG.md and increment major revision).
  • No, this is not a breaking change.

@dthuering
Copy link

Hi @KevinTheGray
can you resolve the merge conflicts? I am looking forward to having this issue fixed. :)

@KevinTheGray
Copy link
Contributor Author

@dthuering thanks for the heads up! resolved it.

If you want, you can also give this PR a thumbs up and the original issue here a thumbs up: flutter/flutter#43567

I believe that's part of how they prioritize which ones to review and merge in

@jameswasher
Copy link

I’m also eagerly awaiting this PR.

# Conflicts:
#	packages/connectivity/connectivity/CHANGELOG.md
* master:
  [url_launcher, url_launcher_web]Added webOnlyWindowName parameter to launch()  (flutter#2979)
  [battery_platform_interface] Introduce package. (flutter#2975)
  [url_launcher_platform_interface] Add webOnlyWindowName parameter to launch() (flutter#2974)
  [share] Add sharing file support (android & ios) (flutter#970)
  [integration_test] add support to get timeline (flutter#2947)
  [battery] Moved battery to its own subdir (flutter#2969)
  [integration_test] Fix channel name for iOS, docs (flutter#2972)
  [integration_test] Show stack trace of widget test errors on the platform side (flutter#2967)
  [video_player] Fix `setWithOthers` test (flutter#2970)
  [video_player_platform_interface] fix `setMixIWithOthers` test channel (flutter#2968)
  Add README instructions for enablePendingPurchases (flutter#2921)
  Rebase previous commits (flutter#2966)
  Avoid walleye 26
  Updating documentation to use isEmpty check. (flutter#2955)
  [integration_test] Minor cleanup (flutter#2956)
  [path_provider, video_player] Tweak pubspecs to pass bulk analysis. (flutter#2959)
  [android_intent] fix platform package dep (flutter#2948)
  [shared_preferences_linux] update `file` package dep version to be compatible with framework (flutter#2950)
Copy link
Contributor

@stuartmorgan-g stuartmorgan-g left a comment

Choose a reason for hiding this comment

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

Apologies that it took me so long to get to this. One small test structure comment, but otherwise looks good. (I will make sure to review future updates here promptly.)

[FLTVideoPlayerPlugin registerWithRegistrar:partialRegistrar];
FLTVideoPlayerPlugin<FLTVideoPlayerApi> *videoPlayerPlugin =
(FLTVideoPlayerPlugin<FLTVideoPlayerApi> *)[registry
valuePublishedByPlugin:@"TEST_FLTVideoPlayerPlugin"];
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a convoluted way to create a test object, and has the problem of affecting global state in the test (since the plugin instance will be leaked by the registration, which will in turn extend the life of these mocks and cause problems in other tests). We should instead:

  • make initWithRegistrar: public
  • call that directly to create a test instance of the plugin

@KevinTheGray
Copy link
Contributor Author

Thanks for the review @stuartmorgan ! I'll get that change in as soon as possible

@KevinTheGray
Copy link
Contributor Author

@stuartmorgan I think this should be as you suggested now. Let me know if I didn't get it right, happy to make any changes!

@machty
Copy link

machty commented Dec 18, 2021

I know we're still waiting on a few tweaks to this PR before it can be merged, but can some other people chime in to mention whether this PR fixes the seek behavior in their apps?

edit: I was able to verify this PR fixes the issue

Copy link
Contributor

@stuartmorgan-g stuartmorgan-g left a comment

Choose a reason for hiding this comment

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

I will make sure to review future updates here promptly.

😞

LGTM! @bparrishMines or @cyanglaz for secondary review (per policy).

Copy link
Contributor

@bparrishMines bparrishMines left a comment

Choose a reason for hiding this comment

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

LGTM

@ened
Copy link
Contributor

ened commented Dec 21, 2021

LGTM from my side too. We have been using a version of this PR for quite a while in production. CC @guymclean

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[video_player] [iOS] texture not updated while scrubbing