Skip to content

[video_player] add contentUri support #88130

@byunme

Description

@byunme

Use case

Hey Flutter team,

We would like to preview videos in our app before importing them into app storage. On Android, we get a contentUri via the system picker (video may be on device, or remote). The video_player plugin currently only supports creating a VideoPlayerController from [asset, network, file] - so this would require converting the contentUri -> network / file.

Proposal

The underlying ExoPlayer on the Android side already supports contentUris.

Our current workaround is to rely on VideoPlayerController.file and override dataSource with the contentUri, but it would be nice to have contentUris be formally supported as a video source.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: videoVideo playbackc: proposalA detailed proposal for a change to Fluttercustomer: googleVarious Google teamsp: video_playerThe Video Player pluginpackageflutter/packages repository. See also p: labels.platform-androidAndroid applications specifically

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions