expo-video 2.0.1 → 2.0.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
CHANGED
|
@@ -10,11 +10,16 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 2.0.2 — 2024-11-29
|
|
14
|
+
|
|
15
|
+
_This version does not introduce any user-facing changes._
|
|
16
|
+
|
|
13
17
|
## 2.0.1 — 2024-11-19
|
|
14
18
|
|
|
15
19
|
### 🐛 Bug fixes
|
|
16
20
|
|
|
17
21
|
- [Android] Fixed `border` related props weren't applied correctly. ([#33075](https://github.com/expo/expo/pull/33075) by [@lukmccall](https://github.com/lukmccall))
|
|
22
|
+
- [Android] Fix controls sometimes flashing on initial display of the view, when `useNativeControls` is `false` ([#33238](https://github.com/expo/expo/pull/33238) by [@behenate](https://github.com/behenate))
|
|
18
23
|
|
|
19
24
|
## 2.0.0 — 2024-11-11
|
|
20
25
|
|
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 = '2.0.
|
|
4
|
+
version = '2.0.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 '2.0.
|
|
17
|
+
versionName '2.0.2'
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
|
|
@@ -95,6 +95,12 @@ class VideoModule : Module() {
|
|
|
95
95
|
OnViewDestroys {
|
|
96
96
|
VideoManager.unregisterVideoView(it)
|
|
97
97
|
}
|
|
98
|
+
|
|
99
|
+
OnViewDidUpdateProps { view ->
|
|
100
|
+
if (view.playerView.useController != view.useNativeControls) {
|
|
101
|
+
view.playerView.useController = view.useNativeControls
|
|
102
|
+
}
|
|
103
|
+
}
|
|
98
104
|
}
|
|
99
105
|
|
|
100
106
|
Class(VideoPlayer::class) {
|
|
@@ -107,6 +107,9 @@ class VideoView(context: Context, appContext: AppContext) : ExpoView(context, ap
|
|
|
107
107
|
init {
|
|
108
108
|
VideoManager.registerVideoView(this)
|
|
109
109
|
playerView.setFullscreenButtonClickListener { enterFullscreen() }
|
|
110
|
+
// The prop `useNativeControls` prop is sometimes applied after the view is created, and sometimes there is a visible
|
|
111
|
+
// flash of controls event when they are set to off. Initially we set it to `false` and apply it in `onAttachedToWindow` to avoid this.
|
|
112
|
+
this.playerView.useController = false
|
|
110
113
|
addView(
|
|
111
114
|
playerView,
|
|
112
115
|
ViewGroup.LayoutParams(
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-video",
|
|
3
3
|
"title": "Expo Video",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.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",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"react": "*",
|
|
39
39
|
"react-native": "*"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "728158f99d680cf64fb06f08301d3806c18c6f63"
|
|
42
42
|
}
|