From e29ca8e9ed6cc4111d5f69800c8deaf87d821ed0 Mon Sep 17 00:00:00 2001 From: M Bruno Corona Alcantar Date: Wed, 11 Feb 2026 14:58:20 -0600 Subject: [PATCH] [video_player_avfoundation] Fix regression where http headers were ignored --- packages/video_player/video_player_avfoundation/CHANGELOG.md | 4 ++++ .../Sources/video_player_avfoundation/FVPAVFactory.m | 2 +- packages/video_player/video_player_avfoundation/pubspec.yaml | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/video_player/video_player_avfoundation/CHANGELOG.md b/packages/video_player/video_player_avfoundation/CHANGELOG.md index e8dcfaca7b9..b22e2b1231e 100644 --- a/packages/video_player/video_player_avfoundation/CHANGELOG.md +++ b/packages/video_player/video_player_avfoundation/CHANGELOG.md @@ -1,3 +1,7 @@ +## 2.9.3 + +* Fixes a regression where HTTP headers were ignored. + ## 2.9.2 * Refactors for improved testability. diff --git a/packages/video_player/video_player_avfoundation/darwin/video_player_avfoundation/Sources/video_player_avfoundation/FVPAVFactory.m b/packages/video_player/video_player_avfoundation/darwin/video_player_avfoundation/Sources/video_player_avfoundation/FVPAVFactory.m index 167ae1feac5..4cee990adb1 100644 --- a/packages/video_player/video_player_avfoundation/darwin/video_player_avfoundation/Sources/video_player_avfoundation/FVPAVFactory.m +++ b/packages/video_player/video_player_avfoundation/darwin/video_player_avfoundation/Sources/video_player_avfoundation/FVPAVFactory.m @@ -136,7 +136,7 @@ - (BOOL)setCategory:(AVAudioSessionCategory)category @implementation FVPDefaultAVFactory - (NSObject *)URLAssetWithURL:(NSURL *)URL options:(nullable NSDictionary *)options { - return [[FVPDefaultAVAsset alloc] initWithAsset:[AVAsset assetWithURL:URL]]; + return [[FVPDefaultAVAsset alloc] initWithAsset:[AVURLAsset URLAssetWithURL:URL options:options]]; } - (NSObject *)playerItemWithAsset:(NSObject *)asset { diff --git a/packages/video_player/video_player_avfoundation/pubspec.yaml b/packages/video_player/video_player_avfoundation/pubspec.yaml index a8ecbe43c04..853ce2760ae 100644 --- a/packages/video_player/video_player_avfoundation/pubspec.yaml +++ b/packages/video_player/video_player_avfoundation/pubspec.yaml @@ -2,7 +2,7 @@ name: video_player_avfoundation description: iOS and macOS implementation of the video_player plugin. repository: https://github.com/flutter/packages/tree/main/packages/video_player/video_player_avfoundation issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+video_player%22 -version: 2.9.2 +version: 2.9.3 environment: sdk: ^3.10.0