Skip to content

[video_player] VideoPlayerController.file doesn't construct URL correctly #105950

@al-tush

Description

@al-tush

Steps to Reproduce

The exception occurs when I open file with ? or # char:

Caused by: com.google.android.exoplayer2.upstream.FileDataSource$FileDataSourceException: uri has query and/or fragment, which are not supported. Did you call Uri.parse() on a string containing '?' or '#'? Use Uri.fromFile(new File(path)) to avoid this. path=/storage/emulated/0/Android/data/com.testapp/files/Download/What_kind_of_dance_is_this....!!,query=7015.mp4,fragment=null
Code sample
VideoPlayerController.file(File(r'/storage/emulated/0/Android/data/com.testapp/files/Download/What_kind_of_dance_is_this....!!?.mp4'));

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High-priority issues at the top of the work listc: crashStack traces logged to the consolefound in release: 3.0Found to occur in 3.0found in release: 3.1Found to occur in 3.1has reproducible stepsThe issue has been confirmed reproducible and is ready to work onp: video_playerThe Video Player pluginpackageflutter/packages repository. See also p: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions