Skip to content

Commit 685d0e6

Browse files
committed
[video_player_avfoundation] Support the HLS (.m3u8) audio on iOS
1 parent 0f1fd49 commit 685d0e6

File tree

2 files changed

+5
-1
lines changed
  • packages/video_player/video_player_avfoundation

2 files changed

+5
-1
lines changed

packages/video_player/video_player_avfoundation/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.6.5
2+
3+
* Supports the audio-only HLS (.m3u8) on iOS.
4+
15
## 2.6.4
26

37
* Refactors native code structure.

packages/video_player/video_player_avfoundation/darwin/video_player_avfoundation/Sources/video_player_avfoundation/FVPVideoPlayer.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ - (void)setupEventSinkIfReadyToPlay {
383383
}
384384

385385
BOOL hasVideoTracks = [asset tracksWithMediaType:AVMediaTypeVideo].count != 0;
386-
BOOL hasNoTracks = asset.tracks.count == 0;
386+
BOOL hasNoTracks = currentItem.tracks.count == 0 && asset.tracks.count == 0;
387387

388388
// The player has not yet initialized when it has no size, unless it is an audio-only track.
389389
// HLS m3u8 video files never load any tracks, and are also not yet initialized until they have

0 commit comments

Comments
 (0)