commit | b2bd8e5be46488fad2a495c87848d5e25e8597f3 | [log] [tgz] |
---|---|---|
author | Rulong Chen(陈汝龙) <26625149+0xZOne@users.noreply.github.com> | Tue Apr 16 09:32:19 2024 +0800 |
committer | GitHub <noreply@github.com> | Tue Apr 16 01:32:19 2024 +0000 |
tree | 9eb857686bb3412aad48f7b9e0e8c5a58c5da091 | |
parent | 9a2490419268365911191f9d8388f986111bcc24 [diff] |
[video_player] Calls `onDestroy` instead of `initialize` in onDetachedFromEngine (#6501) In the `onDetachedFromEngine` function, the `onDestroy` method should be called instead of the `initialize` method, even though the implementation of the two functions is no different. ```java private void onDestroy() { // The whole FlutterView is being destroyed. Here we release resources acquired for all // instances // of VideoPlayer. Once https://github.com/flutter/flutter/issues/19358 is resolved this may // be replaced with just asserting that videoPlayers.isEmpty(). // https://github.com/flutter/flutter/issues/20989 tracks this. disposeAllPlayers(); } public void initialize() { disposeAllPlayers(); } ```
This repo is a companion repo to the main flutter repo. It contains the source code for Flutter's first-party packages (i.e., packages developed by the core Flutter team). Check the packages
directory to see all packages.
These packages are also available on pub.
Please file any issues, bugs, or feature requests in the main flutter repo. Issues pertaining to this repository are labeled “package”.
If you wish to contribute a new package to the Flutter ecosystem, please see the documentation for developing packages. You can store your package source code in any GitHub repository (the present repo is only intended for packages developed by the core Flutter team). Once your package is ready you can publish to the pub repository.
If you wish to contribute a change to any of the existing packages in this repo, please review our contribution guide, and send a pull request.
These are the packages hosted in this repository: