Skip to content

[video_player] VideoPlayerController.initialize() never return if the file is invalid (text file) #147707

@stephane-archer

Description

@stephane-archer

Steps to reproduce

on mac os

      VideoPlayerController controller = VideoPlayerController.file(file);
      await controller.initialize();

if file is a .fish file (a shell script that is not a video but a text file) await controller.initialize(); will never return or throw an exception, you wait indefinitely...

Expected results

if the file is not a video it should throw an exception

Actual results

up

Code sample

Code sample
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
[Paste your output here]

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listp: video_playerThe Video Player pluginpackageflutter/packages repository. See also p: labels.team-ecosystemOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions