Skip to content

[video_player] Add macOS support #41688

Closed
flutter/packages
#5021

Description

@JulianBissekkou

I would like to play videos on macOS and windows which is currently not possible since the video_player plugin uses native views to do that. Is support for desktop planned or are there any plans to implement a flutter only video player?

Activity

  1. added
    platform-macosBuilding on or for macOS specifically
    and removed
    c: new featureNothing broken; request for a new capability
    on Oct 1, 2019
  2. changed the title [-]video support for desktop[/-] [+][video_player] Add macOS support[/+] on Oct 1, 2019
  3. stuartmorgan-g commented on Oct 1, 2019

    @stuartmorgan-g
    Contributor

    Windows is already tracked in #37673; rescoping and retitling for the macOS part of this.

    since the video_player plugin uses native views to do that

    It uses textures, not platform views, actually. This is blocked on #30717 which is underway.

  4. KevinTheGray commented on Oct 9, 2019

    @KevinTheGray

    @stuartmorgan, once #30717 is merged in, would the the next/final step be to build a video_player_fde plugin that supports macOS?

    It seems so, but just want to be sure I'm not missing any further requirements that I'm not seeing.

  5. stuartmorgan-g commented on Oct 9, 2019

    @stuartmorgan-g
    Contributor

    Yes (although it could potentially be submitted directly to flutter/plugins instead at this point; I need to add url_launcher as an initial experiment, but once the dust settles on that macOS support could start being added to other plugins directly).

    There's an initial version of video_player for macOS linked from flutter-team-archive/engine#7087 that could be used as a starting point. I'm not sure offhand how much polish it still needs.

  6. cbenhagen commented on Dec 15, 2019

    @cbenhagen
    Contributor

    @franciscojma86 what is the current status of this? Do you have some code already? Can I help?

  7. 44 remaining items

  8. sglim commented on Sep 7, 2023

    @sglim

    @ryanaltair there is a package here https://pub.dev/packages/video_player_macos

    It will be moved at some point when the Flutter team finally implements this.

    It works perfectly. Thanks!

  9. stuartmorgan-g commented on Sep 22, 2023

    @stuartmorgan-g
    Contributor

    This is blocked on platform view support, per flutter/plugins#3712 (comment)

    Based on more recent conversations, in particular with the engine team, we now expect that we will need to support both texture-based and platform-view based video players for the foreseeable future; each has a different set of limitations. Given that we expect to need to continue to support the iOS texture-based version, and we now have much better code-sharing mechanisms for iOS and macOS plugins, we've revisited the decision around having a texture-based version for macOS, and will be adding that.

  10. added a commit that references this issue on Sep 28, 2023
  11. added a commit that references this issue on Sep 28, 2023
  12. github-actions commented on Oct 12, 2023

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  13. locked as resolved and limited conversation to collaborators on Oct 12, 2023
  14. added
    team-macosOwned by the macOS platform team
    and removed on Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

P2Important issues not at the top of the work lista: desktopRunning on desktopcustomer: crowdAffects or could affect many people, though not necessarily a specific customer.p: video_playerThe Video Player pluginpackageflutter/packages repository. See also p: labels.platform-macosBuilding on or for macOS specificallyteam-macosOwned by the macOS platform team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions