Skip to content

Flutter needs a way to play inline video #2319

Description

@eseidelGoogle

I thought we already had a bug on this, but I don't see one.

It is currently possible to play video fullscreen or over-the-top of other Flutter content, and there are various community-authored plugins to make that easy (e.g. https://pub.dartlang.org/packages/video_launcher)

However this bug is about making it possible to have inline video content (e.g. a video inside a scrolling ScrollView widget inside your Flutter app) properly clipped/positioned/composited with other Flutter content.

Activity

  1. added
    frameworkflutter/packages/flutter repository. See also f: labels.
    engineflutter/engine related. See also e: labels.
    on Mar 2, 2016
  2. added this to the milestone on Mar 2, 2016
  3. modified the milestones: , on Jan 27, 2017
  4. chinmaygarde commented on Mar 17, 2017

    @chinmaygarde
    Contributor

    This is video that is part of the layer tree right? As opposed to a control that is placed by the embedder over the Flutter view. If it is the latter, the existing platform messages API should allow custom embedders to control platform widgets manually. I can take a look at introducing a custom layers type that allows us to support video within the layer tree.

  5. abarth commented on Mar 18, 2017

    @abarth
    Contributor

    This is video that is part of the layer tree right?

    Correct.

  6. changed the title [-]Flutter needs a way to play a video[/-] [+]Flutter needs a way to play inline video[/+] on Jun 5, 2017
  7. modified the milestones: , 3: Current Milestone on Oct 11, 2017
  8. mravn-google commented on Nov 2, 2017

    @mravn-google
    Contributor

    Fixed by texture support #12525. A demo plugin for making use of this facility for video playback is available here.

  9. eseidelGoogle commented on Nov 2, 2017

    @eseidelGoogle
    ContributorAuthor

    Exciting. :D Are there bugs tracking the remaining planned work around inline video (e.g. publishing that package, updating it's readme, possibly including an example of video playback in one of our examples, etc.)?

  10. xster commented on Nov 2, 2017

    @xster
    Member

    +1 on publishing the plugin
    (nit: would it make sense to let the plugin publish a VideoPlayer widget object with a controller rather than a Texture?)

  11. mravn-google commented on Nov 2, 2017

    @mravn-google
    Contributor

    @eseidelGoogle I'll add links here once there are.

    @xster Yes, in fact @sigurdm and I just discussed that today.

  12. sethladd commented on Dec 12, 2017

    @sethladd
    Contributor

    People following along might also be interested in https://pub.dartlang.org/packages/chewie , a video player with platform aesthetic controls.

  13. sethladd commented on Dec 28, 2017

    @sethladd
    Contributor

    Canonical location for the video player plugin is now here: https://github.com/flutter/plugins/tree/master/packages/video_player

  14. JohnGalt1717 commented on Feb 27, 2018

    @JohnGalt1717
  15. chinmaygarde commented on Feb 27, 2018

    @chinmaygarde
    Contributor

    The plugin uses the platform's video playback mechanism. So MediaPlayer on Android and AVPlayer on iOS. This issue was related to using the textures for video feeds generated by the platform during composition of the Flutter layer tree.

    I can't answer your question about support for specific features but you might find the answer in the linked documentation.

  16. keremkusmezer commented on Dec 12, 2018

    @keremkusmezer

    I see they moved to exoplayer for Android

  17. github-actions commented on Aug 13, 2021

    @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.

  18. locked as resolved and limited conversation to collaborators on Aug 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: new featureNothing broken; request for a new capabilityengineflutter/engine related. See also e: labels.frameworkflutter/packages/flutter repository. See also f: labels.

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions