expo-video 2.1.1 → 2.1.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.
Files changed (41) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/android/build.gradle +2 -2
  3. package/build/VideoPlayer.js +2 -0
  4. package/build/VideoPlayer.js.map +1 -1
  5. package/expo-module.config.json +1 -1
  6. package/local-maven-repo/host/exp/exponent/expo.modules.video/{2.1.1/expo.modules.video-2.1.1.module → 2.1.2/expo.modules.video-2.1.2.module} +7 -7
  7. package/local-maven-repo/host/exp/exponent/expo.modules.video/2.1.2/expo.modules.video-2.1.2.module.md5 +1 -0
  8. package/local-maven-repo/host/exp/exponent/expo.modules.video/2.1.2/expo.modules.video-2.1.2.module.sha1 +1 -0
  9. package/local-maven-repo/host/exp/exponent/expo.modules.video/2.1.2/expo.modules.video-2.1.2.module.sha256 +1 -0
  10. package/local-maven-repo/host/exp/exponent/expo.modules.video/2.1.2/expo.modules.video-2.1.2.module.sha512 +1 -0
  11. package/local-maven-repo/host/exp/exponent/expo.modules.video/{2.1.1/expo.modules.video-2.1.1.pom → 2.1.2/expo.modules.video-2.1.2.pom} +1 -1
  12. package/local-maven-repo/host/exp/exponent/expo.modules.video/2.1.2/expo.modules.video-2.1.2.pom.md5 +1 -0
  13. package/local-maven-repo/host/exp/exponent/expo.modules.video/2.1.2/expo.modules.video-2.1.2.pom.sha1 +1 -0
  14. package/local-maven-repo/host/exp/exponent/expo.modules.video/2.1.2/expo.modules.video-2.1.2.pom.sha256 +1 -0
  15. package/local-maven-repo/host/exp/exponent/expo.modules.video/2.1.2/expo.modules.video-2.1.2.pom.sha512 +1 -0
  16. package/local-maven-repo/host/exp/exponent/expo.modules.video/maven-metadata.xml +4 -4
  17. package/local-maven-repo/host/exp/exponent/expo.modules.video/maven-metadata.xml.md5 +1 -1
  18. package/local-maven-repo/host/exp/exponent/expo.modules.video/maven-metadata.xml.sha1 +1 -1
  19. package/local-maven-repo/host/exp/exponent/expo.modules.video/maven-metadata.xml.sha256 +1 -1
  20. package/local-maven-repo/host/exp/exponent/expo.modules.video/maven-metadata.xml.sha512 +1 -1
  21. package/package.json +3 -3
  22. package/src/VideoPlayer.tsx +4 -2
  23. package/src/ts-declarations/react-native-assets.d.ts +1 -0
  24. package/local-maven-repo/host/exp/exponent/expo.modules.video/2.1.1/expo.modules.video-2.1.1.module.md5 +0 -1
  25. package/local-maven-repo/host/exp/exponent/expo.modules.video/2.1.1/expo.modules.video-2.1.1.module.sha1 +0 -1
  26. package/local-maven-repo/host/exp/exponent/expo.modules.video/2.1.1/expo.modules.video-2.1.1.module.sha256 +0 -1
  27. package/local-maven-repo/host/exp/exponent/expo.modules.video/2.1.1/expo.modules.video-2.1.1.module.sha512 +0 -1
  28. package/local-maven-repo/host/exp/exponent/expo.modules.video/2.1.1/expo.modules.video-2.1.1.pom.md5 +0 -1
  29. package/local-maven-repo/host/exp/exponent/expo.modules.video/2.1.1/expo.modules.video-2.1.1.pom.sha1 +0 -1
  30. package/local-maven-repo/host/exp/exponent/expo.modules.video/2.1.1/expo.modules.video-2.1.1.pom.sha256 +0 -1
  31. package/local-maven-repo/host/exp/exponent/expo.modules.video/2.1.1/expo.modules.video-2.1.1.pom.sha512 +0 -1
  32. /package/local-maven-repo/host/exp/exponent/expo.modules.video/{2.1.1/expo.modules.video-2.1.1-sources.jar → 2.1.2/expo.modules.video-2.1.2-sources.jar} +0 -0
  33. /package/local-maven-repo/host/exp/exponent/expo.modules.video/{2.1.1/expo.modules.video-2.1.1-sources.jar.md5 → 2.1.2/expo.modules.video-2.1.2-sources.jar.md5} +0 -0
  34. /package/local-maven-repo/host/exp/exponent/expo.modules.video/{2.1.1/expo.modules.video-2.1.1-sources.jar.sha1 → 2.1.2/expo.modules.video-2.1.2-sources.jar.sha1} +0 -0
  35. /package/local-maven-repo/host/exp/exponent/expo.modules.video/{2.1.1/expo.modules.video-2.1.1-sources.jar.sha256 → 2.1.2/expo.modules.video-2.1.2-sources.jar.sha256} +0 -0
  36. /package/local-maven-repo/host/exp/exponent/expo.modules.video/{2.1.1/expo.modules.video-2.1.1-sources.jar.sha512 → 2.1.2/expo.modules.video-2.1.2-sources.jar.sha512} +0 -0
  37. /package/local-maven-repo/host/exp/exponent/expo.modules.video/{2.1.1/expo.modules.video-2.1.1.aar → 2.1.2/expo.modules.video-2.1.2.aar} +0 -0
  38. /package/local-maven-repo/host/exp/exponent/expo.modules.video/{2.1.1/expo.modules.video-2.1.1.aar.md5 → 2.1.2/expo.modules.video-2.1.2.aar.md5} +0 -0
  39. /package/local-maven-repo/host/exp/exponent/expo.modules.video/{2.1.1/expo.modules.video-2.1.1.aar.sha1 → 2.1.2/expo.modules.video-2.1.2.aar.sha1} +0 -0
  40. /package/local-maven-repo/host/exp/exponent/expo.modules.video/{2.1.1/expo.modules.video-2.1.1.aar.sha256 → 2.1.2/expo.modules.video-2.1.2.aar.sha256} +0 -0
  41. /package/local-maven-repo/host/exp/exponent/expo.modules.video/{2.1.1/expo.modules.video-2.1.1.aar.sha512 → 2.1.2/expo.modules.video-2.1.2.aar.sha512} +0 -0
package/CHANGELOG.md CHANGED
@@ -10,6 +10,10 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 2.1.2 — 2025-04-14
14
+
15
+ _This version does not introduce any user-facing changes._
16
+
13
17
  ## 2.1.1 — 2025-04-09
14
18
 
15
19
  _This version does not introduce any user-facing changes._
@@ -4,13 +4,13 @@ plugins {
4
4
  }
5
5
 
6
6
  group = 'host.exp.exponent'
7
- version = '2.1.1'
7
+ version = '2.1.2'
8
8
 
9
9
  android {
10
10
  namespace "expo.modules.video"
11
11
  defaultConfig {
12
12
  versionCode 1
13
- versionName '2.1.1'
13
+ versionName '2.1.2'
14
14
  }
15
15
  }
16
16
 
@@ -30,12 +30,14 @@ export function useVideoPlayer(source, setup) {
30
30
  }
31
31
  function parseSource(source) {
32
32
  if (typeof source === 'number') {
33
+ // TODO(@kitten): This seems to not handle the `null` case. Is this correct?
33
34
  return { uri: resolveAssetSource(source).uri };
34
35
  }
35
36
  else if (typeof source === 'string') {
36
37
  return { uri: source };
37
38
  }
38
39
  if (typeof source?.assetId === 'number' && !source.uri) {
40
+ // TODO(@kitten): This seems to not handle the `null` case. Is this correct?
39
41
  return { ...source, uri: resolveAssetSource(source.assetId).uri };
40
42
  }
41
43
  return source;
@@ -1 +1 @@
1
- {"version":3,"file":"VideoPlayer.js","sourceRoot":"","sources":["../src/VideoPlayer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAE7D,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AAEpD,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AAEtD,4HAA4H;AAC5H,MAAM,OAAO,GAAG,iBAAiB,CAAC,WAAW,CAAC,SAAS,CAAC,OAAO,CAAC;AAChE,iBAAiB,CAAC,WAAW,CAAC,SAAS,CAAC,OAAO,GAAG,UAAU,MAAmB;IAC7E,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC;AACjD,CAAC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,UAAU,iBAAiB,CAAC,MAAmB;IACnD,OAAO,IAAI,iBAAiB,CAAC,WAAW,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC;AAChE,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAC5B,MAAmB,EACnB,KAAqC;IAErC,MAAM,YAAY,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC;IAEzC,OAAO,wBAAwB,CAAC,GAAG,EAAE;QACnC,MAAM,MAAM,GAAG,IAAI,iBAAiB,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;QAC/D,KAAK,EAAE,CAAC,MAAM,CAAC,CAAC;QAChB,OAAO,MAAM,CAAC;IAChB,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;AACrC,CAAC;AAED,SAAS,WAAW,CAAC,MAAmB;IACtC,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;QAC/B,OAAO,EAAE,GAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,CAAC;IACjD,CAAC;SAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;QACtC,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC;IACzB,CAAC;IAED,IAAI,OAAO,MAAM,EAAE,OAAO,KAAK,QAAQ,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC;QACvD,OAAO,EAAE,GAAG,MAAM,EAAE,GAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC;IACpE,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["import { useReleasingSharedObject } from 'expo-modules-core';\n\nimport NativeVideoModule from './NativeVideoModule';\nimport { VideoSource, VideoPlayer } from './VideoPlayer.types';\nimport resolveAssetSource from './resolveAssetSource';\n\n// TODO: Temporary solution until we develop a way of overriding prototypes that won't break the lazy loading of the module.\nconst replace = NativeVideoModule.VideoPlayer.prototype.replace;\nNativeVideoModule.VideoPlayer.prototype.replace = function (source: VideoSource) {\n return replace.call(this, parseSource(source));\n};\n\n/**\n * Creates a direct instance of `VideoPlayer` that doesn't release automatically.\n *\n * > **info** For most use cases you should use the [`useVideoPlayer`](#usevideoplayer) hook instead. See the [Using the VideoPlayer Directly](#using-the-videoplayer-directly) section for more details.\n * @param source\n */\nexport function createVideoPlayer(source: VideoSource): VideoPlayer {\n return new NativeVideoModule.VideoPlayer(parseSource(source));\n}\n\n/**\n * Creates a `VideoPlayer`, which will be automatically cleaned up when the component is unmounted.\n * @param source - A video source that is used to initialize the player.\n * @param setup - A function that allows setting up the player. It will run after the player is created.\n */\nexport function useVideoPlayer(\n source: VideoSource,\n setup?: (player: VideoPlayer) => void\n): VideoPlayer {\n const parsedSource = parseSource(source);\n\n return useReleasingSharedObject(() => {\n const player = new NativeVideoModule.VideoPlayer(parsedSource);\n setup?.(player);\n return player;\n }, [JSON.stringify(parsedSource)]);\n}\n\nfunction parseSource(source: VideoSource): VideoSource {\n if (typeof source === 'number') {\n return { uri: resolveAssetSource(source).uri };\n } else if (typeof source === 'string') {\n return { uri: source };\n }\n\n if (typeof source?.assetId === 'number' && !source.uri) {\n return { ...source, uri: resolveAssetSource(source.assetId).uri };\n }\n return source;\n}\n"]}
1
+ {"version":3,"file":"VideoPlayer.js","sourceRoot":"","sources":["../src/VideoPlayer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAE7D,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AAEpD,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AAEtD,4HAA4H;AAC5H,MAAM,OAAO,GAAG,iBAAiB,CAAC,WAAW,CAAC,SAAS,CAAC,OAAO,CAAC;AAChE,iBAAiB,CAAC,WAAW,CAAC,SAAS,CAAC,OAAO,GAAG,UAAU,MAAmB;IAC7E,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC;AACjD,CAAC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,UAAU,iBAAiB,CAAC,MAAmB;IACnD,OAAO,IAAI,iBAAiB,CAAC,WAAW,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC;AAChE,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAC5B,MAAmB,EACnB,KAAqC;IAErC,MAAM,YAAY,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC;IAEzC,OAAO,wBAAwB,CAAC,GAAG,EAAE;QACnC,MAAM,MAAM,GAAG,IAAI,iBAAiB,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;QAC/D,KAAK,EAAE,CAAC,MAAM,CAAC,CAAC;QAChB,OAAO,MAAM,CAAC;IAChB,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;AACrC,CAAC;AAED,SAAS,WAAW,CAAC,MAAmB;IACtC,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;QAC/B,4EAA4E;QAC5E,OAAO,EAAE,GAAG,EAAE,kBAAkB,CAAC,MAAM,CAAE,CAAC,GAAG,EAAE,CAAC;IAClD,CAAC;SAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;QACtC,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC;IACzB,CAAC;IAED,IAAI,OAAO,MAAM,EAAE,OAAO,KAAK,QAAQ,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC;QACvD,4EAA4E;QAC5E,OAAO,EAAE,GAAG,MAAM,EAAE,GAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,OAAO,CAAE,CAAC,GAAG,EAAE,CAAC;IACrE,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["import { useReleasingSharedObject } from 'expo-modules-core';\n\nimport NativeVideoModule from './NativeVideoModule';\nimport { VideoSource, VideoPlayer } from './VideoPlayer.types';\nimport resolveAssetSource from './resolveAssetSource';\n\n// TODO: Temporary solution until we develop a way of overriding prototypes that won't break the lazy loading of the module.\nconst replace = NativeVideoModule.VideoPlayer.prototype.replace;\nNativeVideoModule.VideoPlayer.prototype.replace = function (source: VideoSource) {\n return replace.call(this, parseSource(source));\n};\n\n/**\n * Creates a direct instance of `VideoPlayer` that doesn't release automatically.\n *\n * > **info** For most use cases you should use the [`useVideoPlayer`](#usevideoplayer) hook instead. See the [Using the VideoPlayer Directly](#using-the-videoplayer-directly) section for more details.\n * @param source\n */\nexport function createVideoPlayer(source: VideoSource): VideoPlayer {\n return new NativeVideoModule.VideoPlayer(parseSource(source));\n}\n\n/**\n * Creates a `VideoPlayer`, which will be automatically cleaned up when the component is unmounted.\n * @param source - A video source that is used to initialize the player.\n * @param setup - A function that allows setting up the player. It will run after the player is created.\n */\nexport function useVideoPlayer(\n source: VideoSource,\n setup?: (player: VideoPlayer) => void\n): VideoPlayer {\n const parsedSource = parseSource(source);\n\n return useReleasingSharedObject(() => {\n const player = new NativeVideoModule.VideoPlayer(parsedSource);\n setup?.(player);\n return player;\n }, [JSON.stringify(parsedSource)]);\n}\n\nfunction parseSource(source: VideoSource): VideoSource {\n if (typeof source === 'number') {\n // TODO(@kitten): This seems to not handle the `null` case. Is this correct?\n return { uri: resolveAssetSource(source)!.uri };\n } else if (typeof source === 'string') {\n return { uri: source };\n }\n\n if (typeof source?.assetId === 'number' && !source.uri) {\n // TODO(@kitten): This seems to not handle the `null` case. Is this correct?\n return { ...source, uri: resolveAssetSource(source.assetId)!.uri };\n }\n return source;\n}\n"]}
@@ -8,7 +8,7 @@
8
8
  "publication": {
9
9
  "groupId": "host.exp.exponent",
10
10
  "artifactId": "expo.modules.video",
11
- "version": "2.1.1",
11
+ "version": "2.1.2",
12
12
  "repository": "local-maven-repo"
13
13
  }
14
14
  }
@@ -3,7 +3,7 @@
3
3
  "component": {
4
4
  "group": "host.exp.exponent",
5
5
  "module": "expo.modules.video",
6
- "version": "2.1.1",
6
+ "version": "2.1.2",
7
7
  "attributes": {
8
8
  "org.gradle.status": "release"
9
9
  }
@@ -24,8 +24,8 @@
24
24
  },
25
25
  "files": [
26
26
  {
27
- "name": "expo.modules.video-2.1.1.aar",
28
- "url": "expo.modules.video-2.1.1.aar",
27
+ "name": "expo.modules.video-2.1.2.aar",
28
+ "url": "expo.modules.video-2.1.2.aar",
29
29
  "size": 371162,
30
30
  "sha512": "c0defe8fc70309f03e4ab03ae098707df32266d9ed60476008fda07faf89b3e943f0fe7364e9f582d59cd44081601e2cb8382aaf1e1769a1b59e85a83854bc59",
31
31
  "sha256": "0ddf26351b4674406935f588548be46988e8911349703708e92f449212bd9b14",
@@ -113,8 +113,8 @@
113
113
  ],
114
114
  "files": [
115
115
  {
116
- "name": "expo.modules.video-2.1.1.aar",
117
- "url": "expo.modules.video-2.1.1.aar",
116
+ "name": "expo.modules.video-2.1.2.aar",
117
+ "url": "expo.modules.video-2.1.2.aar",
118
118
  "size": 371162,
119
119
  "sha512": "c0defe8fc70309f03e4ab03ae098707df32266d9ed60476008fda07faf89b3e943f0fe7364e9f582d59cd44081601e2cb8382aaf1e1769a1b59e85a83854bc59",
120
120
  "sha256": "0ddf26351b4674406935f588548be46988e8911349703708e92f449212bd9b14",
@@ -133,8 +133,8 @@
133
133
  },
134
134
  "files": [
135
135
  {
136
- "name": "expo.modules.video-2.1.1-sources.jar",
137
- "url": "expo.modules.video-2.1.1-sources.jar",
136
+ "name": "expo.modules.video-2.1.2-sources.jar",
137
+ "url": "expo.modules.video-2.1.2-sources.jar",
138
138
  "size": 48605,
139
139
  "sha512": "825cb0b1997d6a96c6d31a7e6d43357e66198539d8b77d6d67b11c59fc6da3afa58e2d7df82807ff6be1c02e893219f9506a419eb595758041cdd90ee285e491",
140
140
  "sha256": "744a72e25f0078fd4c4fcbe9e7837ba941dfa2782fa5796581616c007f8d73ff",
@@ -0,0 +1 @@
1
+ 521056de15f63c69af5c43c8bd56bde9b908032e7bc8484ec451382422cd8dcb
@@ -0,0 +1 @@
1
+ 08bd08da01d3d5c7d42dd437864eb87ae47568024b46d2900f957f03b4ad920c96795a22ffd9c31a3f396591acb6b25783aa4ed432da4540be0084d14783b7c3
@@ -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>2.1.1</version>
12
+ <version>2.1.2</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
+ fc8fb1b447a34b666db48f584c42ca07ae0bf330
@@ -0,0 +1 @@
1
+ 39f44038c516a9038ffc452cf6d73619331f80d6bbafff7df9e20ec31e3eb7e7
@@ -0,0 +1 @@
1
+ 93b98d068bc0ddfbf66c0d6c2f384893b21d8993808ac72648b2e907ee371aa766794df43e90ef647326dcfdf145c90cb65e3b4ac81eb06b89d1510ec221b650
@@ -3,11 +3,11 @@
3
3
  <groupId>host.exp.exponent</groupId>
4
4
  <artifactId>expo.modules.video</artifactId>
5
5
  <versioning>
6
- <latest>2.1.1</latest>
7
- <release>2.1.1</release>
6
+ <latest>2.1.2</latest>
7
+ <release>2.1.2</release>
8
8
  <versions>
9
- <version>2.1.1</version>
9
+ <version>2.1.2</version>
10
10
  </versions>
11
- <lastUpdated>20250409202814</lastUpdated>
11
+ <lastUpdated>20250414184125</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- abbf85d7931b32ffe8cf3c6a3e68d3f2
1
+ fd6861315bc62a447157702b11396106
@@ -1 +1 @@
1
- b61d15075a26208eab23dc5a3cf5a06ee0d8d1cf
1
+ 6ae4a70ad71a705306147a56da03805d7f76692d
@@ -1 +1 @@
1
- 9bfcae4d1104aee2a6e9611398477c9dd5d6c7e782058afba24506818927e7b8
1
+ 90961f94d71101ee62298e21bf52a4ce5666174320470468ee9670a65dc67a32
@@ -1 +1 @@
1
- 8d31c0d057ea43b744e5792de22c6ad9e9a58a13bff5f715854bfb88d0df4742d7e198589904f44b9918621a34a4d76aa3ed49f361c0800bdac3047c4f231928
1
+ d9bdb79c5bb7e148fe25dca9c737b3f7354cc5873db13ea21b4eb61818c11498287de5381f6e5de387246415b0ca8b924d5ea4ea94502e56f491705ce6ff490a
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "expo-video",
3
3
  "title": "Expo Video",
4
- "version": "2.1.1",
4
+ "version": "2.1.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",
@@ -31,12 +31,12 @@
31
31
  "license": "MIT",
32
32
  "dependencies": {},
33
33
  "devDependencies": {
34
- "expo-module-scripts": "^4.1.1"
34
+ "expo-module-scripts": "^4.1.2"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "expo": "*",
38
38
  "react": "*",
39
39
  "react-native": "*"
40
40
  },
41
- "gitHead": "1914bb35d23af23078da37e70988261844436505"
41
+ "gitHead": "335e9312f5caf634097354a230f0d4bbbfb9b0ba"
42
42
  }
@@ -40,13 +40,15 @@ export function useVideoPlayer(
40
40
 
41
41
  function parseSource(source: VideoSource): VideoSource {
42
42
  if (typeof source === 'number') {
43
- return { uri: resolveAssetSource(source).uri };
43
+ // TODO(@kitten): This seems to not handle the `null` case. Is this correct?
44
+ return { uri: resolveAssetSource(source)!.uri };
44
45
  } else if (typeof source === 'string') {
45
46
  return { uri: source };
46
47
  }
47
48
 
48
49
  if (typeof source?.assetId === 'number' && !source.uri) {
49
- return { ...source, uri: resolveAssetSource(source.assetId).uri };
50
+ // TODO(@kitten): This seems to not handle the `null` case. Is this correct?
51
+ return { ...source, uri: resolveAssetSource(source.assetId)!.uri };
50
52
  }
51
53
  return source;
52
54
  }
@@ -0,0 +1 @@
1
+ /// <reference path="../../../expo-asset/src/ts-declarations/react-native-assets.d.ts" />
@@ -1 +0,0 @@
1
- d24f91f94267766be2019023a0a70c078ff555e5
@@ -1 +0,0 @@
1
- cf60af111fd5f3f56e742d8358d14972ebccbe7f98c964dc19323611b19f6695
@@ -1 +0,0 @@
1
- 7252bf75b382fddaabcda8929d974a621d6ef7ccc0be1ff2d8bd8dca752168ccc382bbcf9cbac192969851049603874c77a484443693bf94b9078411cb1df27e
@@ -1 +0,0 @@
1
- 4ab857d50d57e420a276dfe9765e9e39fc32c17c
@@ -1 +0,0 @@
1
- 91d3880bdbcf52db3faa93264f9ced99b580125b58db46a6f763508529072b9e
@@ -1 +0,0 @@
1
- 573b02be17b27eeb87714ae9d899a20984cabcb030ae9ed0fc58db3b7631cf6d7d547bde328903eaf58acc1bad354d4859a149e9a07f696b40a3442043821174