Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Bug]: DASH (.mpd) stream fails while working with standard video_player #295

@Salvatore95

Description

@Salvatore95

When attempting to play a network video stream with a .mpd extension (MPEG-DASH), the player fails with an "invalid or unsupported media" error in the console.

This behavior seems to be specific to fvp, as the exact same URL and configuration work perfectly when using the standard video_player package with formatHint: VideoFormat.dash. HLS (.m3u8) streams, on the other hand, work as expected.

This is my controller

_controller = VideoPlayerController.networkUrl(
      Uri.parse(cacheBustingUrl),
      httpHeaders: httpHeaders,
      formatHint: VideoFormat.dash,
      videoPlayerOptions: VideoPlayerOptions(
        allowBackgroundPlayback: false,
      ),
    );

Device

  • Android TV Emulator API 36

Flutter doctor

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.24.3, on macOS 14.7.4 23H420 darwin-arm64, locale it-IT)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.1)
[✓] Network resources

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions