expo-video 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/android/build.gradle +2 -2
- package/ios/NowPlayingManager.swift +1 -1
- package/ios/VideoPlayer.swift +5 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,12 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 1.2.2 — 2024-07-03
|
|
14
|
+
|
|
15
|
+
### 🐛 Bug fixes
|
|
16
|
+
|
|
17
|
+
- [iOS] Fix crashes on iOS 16 and lower when source HTTP headers are undefined. ([#30104](https://github.com/expo/expo/pull/30104) by [@behenate](https://github.com/behenate))
|
|
18
|
+
|
|
13
19
|
## 1.2.1 — 2024-06-27
|
|
14
20
|
|
|
15
21
|
### 🎉 New features
|
package/android/build.gradle
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
apply plugin: 'com.android.library'
|
|
2
2
|
|
|
3
3
|
group = 'host.exp.exponent'
|
|
4
|
-
version = '1.2.
|
|
4
|
+
version = '1.2.2'
|
|
5
5
|
|
|
6
6
|
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
|
|
7
7
|
apply from: expoModulesCorePlugin
|
|
@@ -14,7 +14,7 @@ android {
|
|
|
14
14
|
namespace "expo.modules.video"
|
|
15
15
|
defaultConfig {
|
|
16
16
|
versionCode 1
|
|
17
|
-
versionName '1.2.
|
|
17
|
+
versionName '1.2.2'
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
|
|
@@ -177,7 +177,7 @@ class NowPlayingManager: VideoPlayerObserverDelegate {
|
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
private func loadMetadata(for mediaItem: AVPlayerItem) async throws -> [AVMetadataItem] {
|
|
180
|
-
if #available(iOS 15.0, *) {
|
|
180
|
+
if #available(iOS 15.0, tvOS 15.0, *) {
|
|
181
181
|
return try await mediaItem.asset.loadMetadata(for: .iTunesMetadata)
|
|
182
182
|
}
|
|
183
183
|
|
package/ios/VideoPlayer.swift
CHANGED
|
@@ -98,7 +98,11 @@ internal final class VideoPlayer: SharedRef<AVPlayer>, Hashable, VideoPlayerObse
|
|
|
98
98
|
return
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
let asset =
|
|
101
|
+
let asset = if let headers = videoSource.headers {
|
|
102
|
+
AVURLAsset(url: url, options: ["AVURLAssetHTTPHeaderFieldsKey": headers])
|
|
103
|
+
} else {
|
|
104
|
+
AVURLAsset(url: url)
|
|
105
|
+
}
|
|
102
106
|
let playerItem = VideoPlayerItem(asset: asset, videoSource: videoSource)
|
|
103
107
|
|
|
104
108
|
if let drm = videoSource.drm {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-video",
|
|
3
3
|
"title": "Expo Video",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.2",
|
|
5
5
|
"description": "A cross-platform, performant video component for React Native and Expo with Web support",
|
|
6
6
|
"main": "build/index.js",
|
|
7
7
|
"types": "build/index.d.ts",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"expo": "*"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "c37efa4f4ebe6137c34eb5813843df7015f3c22f"
|
|
40
40
|
}
|