commit | c070b0a7a80a54d5fad254fecdfd98ffe764bd4e | [log] [tgz] |
---|---|---|
author | stuartmorgan <stuartmorgan@google.com> | Thu Sep 28 04:18:23 2023 -0700 |
committer | GitHub <noreply@github.com> | Thu Sep 28 11:18:23 2023 +0000 |
tree | fa355a9c7f572b2a77698cd30bee4abfba812539 | |
parent | 79461c2fbdc7c95ab404cc0291703a6bedb195bd [diff] |
[video_player] Add macOS support (#4982) Adds macOS support to `video_player`, sharing almost all of the code with iOS. Notes about changes at a high level: - macOS does not have `CADisplayLink` (prior to 14, and even there without all the functionality we need), so this adds macOS compilation branches that use the lower-level `CVDisplayLink` instead. Per the TODO, this code should be extracted later to reduce `ifdef`s in what is already a complicated file. - Adds KVO unregistration on `dealloc` if it wasn't done in `dispose`, since unit tests were crashing on macOS with that. - Temporarily ifdef's out `publish:` for macOS, with a TODO to re-enable it after the next stable. Most of https://github.com/flutter/flutter/issues/41688 Once this lands, the app-facing package will be updated to endorse it for macOS.
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: