Skip to content

Commit

Permalink
set mime type for streams
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustl22 committed May 24, 2024
1 parent b132099 commit e701843
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ final mp3Url1TestData = LibSourceTestData(
);

final m3u8UrlTestData = LibSourceTestData(
source: UrlSource(m3u8StreamUrl),
source: UrlSource(m3u8StreamUrl, mimeType: 'application/x-mpegURL'),
duration: null,
);

final mpgaUrlTestData = LibSourceTestData(
source: UrlSource(mpgaStreamUrl),
source: UrlSource(mpgaStreamUrl, mimeType: 'audio/mpeg'),
duration: null,
);

Expand Down
4 changes: 2 additions & 2 deletions packages/audioplayers/example/lib/tabs/sources.dart
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,13 @@ class _SourcesTabState extends State<SourcesTab>
setSourceKey: const Key('setSource-url-remote-m3u8'),
title: 'Remote URL M3U8',
subtitle: 'BBC stream',
source: UrlSource(m3u8StreamUrl),
source: UrlSource(m3u8StreamUrl, mimeType: 'application/x-mpegURL'),
),
_createSourceTile(
setSourceKey: const Key('setSource-url-remote-mpga'),
title: 'Remote URL MPGA',
subtitle: 'Times stream',
source: UrlSource(mpgaStreamUrl),
source: UrlSource(mpgaStreamUrl, mimeType: 'audio/mpeg'),
),
_createSourceTile(
setSourceKey: const Key('setSource-url-data-wav'),
Expand Down

0 comments on commit e701843

Please sign in to comment.