expo-video 55.0.4 → 55.0.5

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.
Files changed (49) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/android/build.gradle +2 -2
  3. package/android/src/main/java/expo/modules/video/VideoCache.kt +5 -1
  4. package/android/src/main/java/expo/modules/video/managers/VideoManager.kt +5 -3
  5. package/expo-module.config.json +1 -1
  6. package/ios/VideoPlayerItem.swift +1 -1
  7. package/local-maven-repo/host/exp/exponent/expo.modules.video/{55.0.4/expo.modules.video-55.0.4-sources.jar → 55.0.5/expo.modules.video-55.0.5-sources.jar} +0 -0
  8. package/local-maven-repo/host/exp/exponent/expo.modules.video/55.0.5/expo.modules.video-55.0.5-sources.jar.md5 +1 -0
  9. package/local-maven-repo/host/exp/exponent/expo.modules.video/55.0.5/expo.modules.video-55.0.5-sources.jar.sha1 +1 -0
  10. package/local-maven-repo/host/exp/exponent/expo.modules.video/55.0.5/expo.modules.video-55.0.5-sources.jar.sha256 +1 -0
  11. package/local-maven-repo/host/exp/exponent/expo.modules.video/55.0.5/expo.modules.video-55.0.5-sources.jar.sha512 +1 -0
  12. package/local-maven-repo/host/exp/exponent/expo.modules.video/55.0.5/expo.modules.video-55.0.5.aar +0 -0
  13. package/local-maven-repo/host/exp/exponent/expo.modules.video/55.0.5/expo.modules.video-55.0.5.aar.md5 +1 -0
  14. package/local-maven-repo/host/exp/exponent/expo.modules.video/55.0.5/expo.modules.video-55.0.5.aar.sha1 +1 -0
  15. package/local-maven-repo/host/exp/exponent/expo.modules.video/55.0.5/expo.modules.video-55.0.5.aar.sha256 +1 -0
  16. package/local-maven-repo/host/exp/exponent/expo.modules.video/55.0.5/expo.modules.video-55.0.5.aar.sha512 +1 -0
  17. package/local-maven-repo/host/exp/exponent/expo.modules.video/{55.0.4/expo.modules.video-55.0.4.module → 55.0.5/expo.modules.video-55.0.5.module} +22 -22
  18. package/local-maven-repo/host/exp/exponent/expo.modules.video/55.0.5/expo.modules.video-55.0.5.module.md5 +1 -0
  19. package/local-maven-repo/host/exp/exponent/expo.modules.video/55.0.5/expo.modules.video-55.0.5.module.sha1 +1 -0
  20. package/local-maven-repo/host/exp/exponent/expo.modules.video/55.0.5/expo.modules.video-55.0.5.module.sha256 +1 -0
  21. package/local-maven-repo/host/exp/exponent/expo.modules.video/55.0.5/expo.modules.video-55.0.5.module.sha512 +1 -0
  22. package/local-maven-repo/host/exp/exponent/expo.modules.video/{55.0.4/expo.modules.video-55.0.4.pom → 55.0.5/expo.modules.video-55.0.5.pom} +1 -1
  23. package/local-maven-repo/host/exp/exponent/expo.modules.video/55.0.5/expo.modules.video-55.0.5.pom.md5 +1 -0
  24. package/local-maven-repo/host/exp/exponent/expo.modules.video/55.0.5/expo.modules.video-55.0.5.pom.sha1 +1 -0
  25. package/local-maven-repo/host/exp/exponent/expo.modules.video/55.0.5/expo.modules.video-55.0.5.pom.sha256 +1 -0
  26. package/local-maven-repo/host/exp/exponent/expo.modules.video/55.0.5/expo.modules.video-55.0.5.pom.sha512 +1 -0
  27. package/local-maven-repo/host/exp/exponent/expo.modules.video/maven-metadata.xml +4 -4
  28. package/local-maven-repo/host/exp/exponent/expo.modules.video/maven-metadata.xml.md5 +1 -1
  29. package/local-maven-repo/host/exp/exponent/expo.modules.video/maven-metadata.xml.sha1 +1 -1
  30. package/local-maven-repo/host/exp/exponent/expo.modules.video/maven-metadata.xml.sha256 +1 -1
  31. package/local-maven-repo/host/exp/exponent/expo.modules.video/maven-metadata.xml.sha512 +1 -1
  32. package/package.json +2 -2
  33. package/local-maven-repo/host/exp/exponent/expo.modules.video/55.0.4/expo.modules.video-55.0.4-sources.jar.md5 +0 -1
  34. package/local-maven-repo/host/exp/exponent/expo.modules.video/55.0.4/expo.modules.video-55.0.4-sources.jar.sha1 +0 -1
  35. package/local-maven-repo/host/exp/exponent/expo.modules.video/55.0.4/expo.modules.video-55.0.4-sources.jar.sha256 +0 -1
  36. package/local-maven-repo/host/exp/exponent/expo.modules.video/55.0.4/expo.modules.video-55.0.4-sources.jar.sha512 +0 -1
  37. package/local-maven-repo/host/exp/exponent/expo.modules.video/55.0.4/expo.modules.video-55.0.4.aar +0 -0
  38. package/local-maven-repo/host/exp/exponent/expo.modules.video/55.0.4/expo.modules.video-55.0.4.aar.md5 +0 -1
  39. package/local-maven-repo/host/exp/exponent/expo.modules.video/55.0.4/expo.modules.video-55.0.4.aar.sha1 +0 -1
  40. package/local-maven-repo/host/exp/exponent/expo.modules.video/55.0.4/expo.modules.video-55.0.4.aar.sha256 +0 -1
  41. package/local-maven-repo/host/exp/exponent/expo.modules.video/55.0.4/expo.modules.video-55.0.4.aar.sha512 +0 -1
  42. package/local-maven-repo/host/exp/exponent/expo.modules.video/55.0.4/expo.modules.video-55.0.4.module.md5 +0 -1
  43. package/local-maven-repo/host/exp/exponent/expo.modules.video/55.0.4/expo.modules.video-55.0.4.module.sha1 +0 -1
  44. package/local-maven-repo/host/exp/exponent/expo.modules.video/55.0.4/expo.modules.video-55.0.4.module.sha256 +0 -1
  45. package/local-maven-repo/host/exp/exponent/expo.modules.video/55.0.4/expo.modules.video-55.0.4.module.sha512 +0 -1
  46. package/local-maven-repo/host/exp/exponent/expo.modules.video/55.0.4/expo.modules.video-55.0.4.pom.md5 +0 -1
  47. package/local-maven-repo/host/exp/exponent/expo.modules.video/55.0.4/expo.modules.video-55.0.4.pom.sha1 +0 -1
  48. package/local-maven-repo/host/exp/exponent/expo.modules.video/55.0.4/expo.modules.video-55.0.4.pom.sha256 +0 -1
  49. package/local-maven-repo/host/exp/exponent/expo.modules.video/55.0.4/expo.modules.video-55.0.4.pom.sha512 +0 -1
package/CHANGELOG.md CHANGED
@@ -10,6 +10,13 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 55.0.5 — 2026-02-08
14
+
15
+ ### 🐛 Bug fixes
16
+
17
+ - [iOS] Prevents blocking main thread when loading asset tracks for non-HSL tracks ([#42037](https://github.com/expo/expo/pull/42037) by [@santitopo](https://github.com/santitopo))
18
+ - [Android] Fix crash due to `SimpleCache` directory lock conflicts. ([#42723](https://github.com/expo/expo/pull/42723) by [@santitopo](https://github.com/santitopo))
19
+
13
20
  ## 55.0.4 — 2026-02-03
14
21
 
15
22
  ### 🐛 Bug fixes
@@ -4,13 +4,13 @@ plugins {
4
4
  }
5
5
 
6
6
  group = 'host.exp.exponent'
7
- version = '55.0.4'
7
+ version = '55.0.5'
8
8
 
9
9
  android {
10
10
  namespace "expo.modules.video"
11
11
  defaultConfig {
12
12
  versionCode 1
13
- versionName '55.0.4'
13
+ versionName '55.0.5'
14
14
  }
15
15
  }
16
16
 
@@ -38,6 +38,10 @@ class VideoCache(context: Context) {
38
38
  return sharedPreferences.getLong(CACHE_SIZE_KEY, DEFAULT_CACHE_SIZE)
39
39
  }
40
40
 
41
+ fun release() {
42
+ instance.release()
43
+ }
44
+
41
45
  fun setMaxCacheSize(size: Long) {
42
46
  assertModificationReleaseConditions()
43
47
  instance.release()
@@ -55,7 +59,7 @@ class VideoCache(context: Context) {
55
59
  // Weird structure, because kotlin marks the result of `getString` as nullable
56
60
  val videoCacheDirName = sharedPreferences.getString(VIDEO_CACHE_DIR_KEY, null) ?: run {
57
61
  val newCacheDirName = generateCacheDirName()
58
- sharedPreferences.edit().putString(VIDEO_CACHE_DIR_KEY, newCacheDirName).apply()
62
+ sharedPreferences.edit().putString(VIDEO_CACHE_DIR_KEY, newCacheDirName).commit()
59
63
  newCacheDirName
60
64
  }
61
65
  val cacheParentDir = File(context.cacheDir, VIDEO_CACHE_PARENT_DIR)
@@ -34,18 +34,20 @@ object VideoManager {
34
34
 
35
35
  private var listeners = mutableListOf<WeakReference<VideoManagerListener>>()
36
36
 
37
- fun onModuleCreated(appContext: AppContext) {
37
+ fun onModuleCreated(appContext: AppContext) = synchronized(this) {
38
38
  val context = appContext.reactContext ?: throw Exceptions.ReactContextLost()
39
- this.appContext = WeakReference(appContext)
40
39
 
41
40
  this.pictureInPicture = PictureInPictureManager(appContext)
42
-
43
41
  if (!this::audioFocusManager.isInitialized) {
44
42
  audioFocusManager = AudioFocusManager(appContext)
45
43
  }
46
44
  if (!this::cache.isInitialized) {
47
45
  cache = VideoCache(context)
46
+ } else if (this.appContext.get()?.reactContext != appContext.reactContext) {
47
+ cache.release()
48
+ cache = VideoCache(context)
48
49
  }
50
+ this.appContext = WeakReference(appContext)
49
51
  }
50
52
 
51
53
  fun onModuleDestroyed(appContext: AppContext) {
@@ -8,7 +8,7 @@
8
8
  "publication": {
9
9
  "groupId": "host.exp.exponent",
10
10
  "artifactId": "expo.modules.video",
11
- "version": "55.0.4",
11
+ "version": "55.0.5",
12
12
  "repository": "local-maven-repo"
13
13
  }
14
14
  }
@@ -68,7 +68,7 @@ class VideoPlayerItem: AVPlayerItem {
68
68
  log.warn("Failed to fetch HLS video tracks, this is not required for playback, but `expo-video` will have no knowledge of the available tracks: \(error.localizedDescription)")
69
69
  }
70
70
  } else {
71
- let avAssetTracks = asset.tracks(withMediaType: .video)
71
+ let avAssetTracks = (try? await asset.loadTracks(withMediaType: .video)) ?? []
72
72
  for avAssetTrack in avAssetTracks {
73
73
  tracks.append(await VideoTrack.from(assetTrack: avAssetTrack))
74
74
  }
@@ -0,0 +1 @@
1
+ e15d8dbcff49ce16c52ce9ee1e06740a2877df31441393f24cb02b0a82b6613f
@@ -0,0 +1 @@
1
+ cfea5587575da0c237a6e140492568514cd8b0537dfc16924358688701012c87d3f1405da13dff86f0a8e4effeee32647ea33f9dad209aabe0b85a01f33ee19b
@@ -0,0 +1 @@
1
+ ddef8993db2a451f443f58a7c9199e7fda4aa1ec
@@ -0,0 +1 @@
1
+ 8eb907d65d0405b3f27c69338c30c32fe41eaae51cb9ee44d3bf2bee246d5d58
@@ -0,0 +1 @@
1
+ 0b7448b4eb1715cc8b8b5de83279b382f8a11325f6c50fcd9e6f475994085b76d58b9ebf7402d2db7d7a9b3d068a5e1228452e83c59324ccc9ab3d2fa53fa4e4
@@ -3,7 +3,7 @@
3
3
  "component": {
4
4
  "group": "host.exp.exponent",
5
5
  "module": "expo.modules.video",
6
- "version": "55.0.4",
6
+ "version": "55.0.5",
7
7
  "attributes": {
8
8
  "org.gradle.status": "release"
9
9
  }
@@ -24,13 +24,13 @@
24
24
  },
25
25
  "files": [
26
26
  {
27
- "name": "expo.modules.video-55.0.4.aar",
28
- "url": "expo.modules.video-55.0.4.aar",
29
- "size": 545575,
30
- "sha512": "dce230784e3954445e373583165dbcdb2eb8126d6dc09d08f47fb618fb0b25a7752f7dc5563dd3144e46862d3b61e904259c2be5ceaa943c86341dc2632fbcdb",
31
- "sha256": "7669e7dfefea8d2fa2b6e9aca91f8632068004cbde3640974db17d8212259946",
32
- "sha1": "44583c9075eab8876f219c5320e7ced9993a2862",
33
- "md5": "7e59a49a49686894573dc2cbff17f6b3"
27
+ "name": "expo.modules.video-55.0.5.aar",
28
+ "url": "expo.modules.video-55.0.5.aar",
29
+ "size": 545797,
30
+ "sha512": "0b7448b4eb1715cc8b8b5de83279b382f8a11325f6c50fcd9e6f475994085b76d58b9ebf7402d2db7d7a9b3d068a5e1228452e83c59324ccc9ab3d2fa53fa4e4",
31
+ "sha256": "8eb907d65d0405b3f27c69338c30c32fe41eaae51cb9ee44d3bf2bee246d5d58",
32
+ "sha1": "ddef8993db2a451f443f58a7c9199e7fda4aa1ec",
33
+ "md5": "99c219f3c446ec2e892835b29b8594b4"
34
34
  }
35
35
  ]
36
36
  },
@@ -113,13 +113,13 @@
113
113
  ],
114
114
  "files": [
115
115
  {
116
- "name": "expo.modules.video-55.0.4.aar",
117
- "url": "expo.modules.video-55.0.4.aar",
118
- "size": 545575,
119
- "sha512": "dce230784e3954445e373583165dbcdb2eb8126d6dc09d08f47fb618fb0b25a7752f7dc5563dd3144e46862d3b61e904259c2be5ceaa943c86341dc2632fbcdb",
120
- "sha256": "7669e7dfefea8d2fa2b6e9aca91f8632068004cbde3640974db17d8212259946",
121
- "sha1": "44583c9075eab8876f219c5320e7ced9993a2862",
122
- "md5": "7e59a49a49686894573dc2cbff17f6b3"
116
+ "name": "expo.modules.video-55.0.5.aar",
117
+ "url": "expo.modules.video-55.0.5.aar",
118
+ "size": 545797,
119
+ "sha512": "0b7448b4eb1715cc8b8b5de83279b382f8a11325f6c50fcd9e6f475994085b76d58b9ebf7402d2db7d7a9b3d068a5e1228452e83c59324ccc9ab3d2fa53fa4e4",
120
+ "sha256": "8eb907d65d0405b3f27c69338c30c32fe41eaae51cb9ee44d3bf2bee246d5d58",
121
+ "sha1": "ddef8993db2a451f443f58a7c9199e7fda4aa1ec",
122
+ "md5": "99c219f3c446ec2e892835b29b8594b4"
123
123
  }
124
124
  ]
125
125
  },
@@ -133,13 +133,13 @@
133
133
  },
134
134
  "files": [
135
135
  {
136
- "name": "expo.modules.video-55.0.4-sources.jar",
137
- "url": "expo.modules.video-55.0.4-sources.jar",
138
- "size": 71346,
139
- "sha512": "a8f108966a4e9fdd9c3acaa734fa1245603e7d25a2362358b09cee065a64b24a78f64afae9da71355f4a2c78886d53535f37d121b378d95e1cc78a23584ddd42",
140
- "sha256": "ab63271526942cb4e779884c96269da73dcf9e1cffdcaf77fb8f45e7dcca5fc5",
141
- "sha1": "627e3f857540cdb120e8f98e4bd4e172dcd8759f",
142
- "md5": "7fbc20cd7b3944c950c1e4026e3ab672"
136
+ "name": "expo.modules.video-55.0.5-sources.jar",
137
+ "url": "expo.modules.video-55.0.5-sources.jar",
138
+ "size": 71394,
139
+ "sha512": "cfea5587575da0c237a6e140492568514cd8b0537dfc16924358688701012c87d3f1405da13dff86f0a8e4effeee32647ea33f9dad209aabe0b85a01f33ee19b",
140
+ "sha256": "e15d8dbcff49ce16c52ce9ee1e06740a2877df31441393f24cb02b0a82b6613f",
141
+ "sha1": "c46cd7eca387c70a50020c1ebe499bec22891761",
142
+ "md5": "337b1a3db19b239591ab650a76003a2b"
143
143
  }
144
144
  ]
145
145
  }
@@ -0,0 +1 @@
1
+ 6115568ae87893e04aed777b5a87ef525c06d90fed34e188262fc05f9fb1c01f
@@ -0,0 +1 @@
1
+ 99df386cb6f39793ef92d8e1aa14bf85d72972cc28033c3175a53ba579b8ffe6c40a0e4642e9e3519d19be0d00dcf5d96c673dac0e3969427b4b77b6a618edba
@@ -9,7 +9,7 @@
9
9
  <modelVersion>4.0.0</modelVersion>
10
10
  <groupId>host.exp.exponent</groupId>
11
11
  <artifactId>expo.modules.video</artifactId>
12
- <version>55.0.4</version>
12
+ <version>55.0.5</version>
13
13
  <packaging>aar</packaging>
14
14
  <name>expo.modules.video</name>
15
15
  <url>https://github.com/expo/expo</url>
@@ -0,0 +1 @@
1
+ 36ae9998b86e42f7aaf500bf95a500b6ce2e7b9d
@@ -0,0 +1 @@
1
+ f6172b0e29b88db12a3abd2203ab725f5fd23f5c6535b55549989b4bbdfa44c8
@@ -0,0 +1 @@
1
+ 50ae6d8bb0bb90957fd459dc5e7aa22060bf034f563a96842a7376c67a854aab038e317f3f565c6fa437442acc9cbd9ce636a6ff87ef7b2c60e9dc1b6f28b7fe
@@ -3,11 +3,11 @@
3
3
  <groupId>host.exp.exponent</groupId>
4
4
  <artifactId>expo.modules.video</artifactId>
5
5
  <versioning>
6
- <latest>55.0.4</latest>
7
- <release>55.0.4</release>
6
+ <latest>55.0.5</latest>
7
+ <release>55.0.5</release>
8
8
  <versions>
9
- <version>55.0.4</version>
9
+ <version>55.0.5</version>
10
10
  </versions>
11
- <lastUpdated>20260203054515</lastUpdated>
11
+ <lastUpdated>20260208025505</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- 16c411e74a51a047ef75a5da4c4e00c4
1
+ 7887f9426800ca86d58a78419f3fef31
@@ -1 +1 @@
1
- bea6ac1a7483a71e4cb2c0e63ee3e9ae83fb08ad
1
+ a0a3c57a6666093bebc686c4866f9066babcab05
@@ -1 +1 @@
1
- b604d3d20b71df6e2acd19820d7c3813f3483f70fe2613f42190c87c77799758
1
+ 40f8c5adf8293cf82c67f11a3c3b3ed7db102ea00f066a2235ac542068586529
@@ -1 +1 @@
1
- d04ac575905cb3443bb215dff789a61acc66077dda779ec12966937774c97c7b182a770fa9c5f4223cfd0a282b85831a16f99dea1fdcbe9031d12a3b222ea9dc
1
+ 2105b350279052c673e72171a3947be5c8a9482902147eb95a0b80cae0f617b376ed4a07bf0157972ff9a3c513f760eecb1540d70aeec840a30d35f8cd61d709
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "expo-video",
3
3
  "title": "Expo Video",
4
- "version": "55.0.4",
4
+ "version": "55.0.5",
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",
@@ -38,5 +38,5 @@
38
38
  "react": "*",
39
39
  "react-native": "*"
40
40
  },
41
- "gitHead": "436ffb4355d5207f4a03fbc3568cd33424a40f3e"
41
+ "gitHead": "cd3638bb85f9560392acfd5160a266cf97880b3b"
42
42
  }
@@ -1 +0,0 @@
1
- ab63271526942cb4e779884c96269da73dcf9e1cffdcaf77fb8f45e7dcca5fc5
@@ -1 +0,0 @@
1
- a8f108966a4e9fdd9c3acaa734fa1245603e7d25a2362358b09cee065a64b24a78f64afae9da71355f4a2c78886d53535f37d121b378d95e1cc78a23584ddd42
@@ -1 +0,0 @@
1
- 44583c9075eab8876f219c5320e7ced9993a2862
@@ -1 +0,0 @@
1
- 7669e7dfefea8d2fa2b6e9aca91f8632068004cbde3640974db17d8212259946
@@ -1 +0,0 @@
1
- dce230784e3954445e373583165dbcdb2eb8126d6dc09d08f47fb618fb0b25a7752f7dc5563dd3144e46862d3b61e904259c2be5ceaa943c86341dc2632fbcdb
@@ -1 +0,0 @@
1
- 4cf3cc36b0c208dc10a8a59edad2b442fbde916f
@@ -1 +0,0 @@
1
- 417aab566d76ab1cc543e871039deb80d09ad51c5df96cb2980903f1e6cff6a0
@@ -1 +0,0 @@
1
- 46b5bbdd61cb73ba8c0c399644c9f8318f51bad2918819b75ebd587d52ce7b6e6688b6491ffd58d28a2bcfea39846f7aa9604c75809ed21081363b8504334408
@@ -1 +0,0 @@
1
- a84fcb7b520ccb77876231ac539b6b34207f5577
@@ -1 +0,0 @@
1
- c17678fe460b7000cd54cb669436333c3f2b32b8b2eab6d306bcf0a8eeb3324d
@@ -1 +0,0 @@
1
- aa6a970b7ac359d51cbe831380be6bef7753d804534a2442e16b8eedfa1522d61a3366f6f312ca4775fc6448e4e43bc046ce710f31ca77c5b9cecd76f104918e