Skip to content

Commit cc5d1d5

Browse files
authored
Merge pull request #62 from Waveful/patch-1
Preserve headers when using KTVHTTPCache
2 parents 3ee344f + 5a9ffba commit cc5d1d5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

ios/Classes/CachedVideoPlayerPlugin.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,7 @@ - (CachedTextureMessage*)create:(CachedCreateMessage*)input error:(FlutterError*
536536
NSURL *usedURL = [NSURL URLWithString:input.uri];
537537
if(![input.formatHint isEqual: @"hls"]) {
538538
usedURL = [KTVHTTPCache proxyURLWithOriginalURL:usedURL];
539+
[KTVHTTPCache downloadSetAdditionalHeaders:input.httpHeaders];
539540
}
540541

541542
player = [[CachedVideoPlayer alloc] initWithURL:usedURL

0 commit comments

Comments
 (0)