expo-libmpv 0.4.1 → 0.4.3

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.
@@ -24,7 +24,6 @@ class LibmpvViewModule : Module() {
24
24
 
25
25
  Prop("videoOutput") { view: LibmpvView, videoOutput: String ->
26
26
  view.videoOutput = videoOutput
27
- view.setVideoOutput(videoOutput)
28
27
  view.attemptCreation()
29
28
  view.log("setVideoOutput", videoOutput)
30
29
  }
@@ -106,14 +106,16 @@ class LibmpvWrapper(private val applicationContext: Context) {
106
106
  try {
107
107
  MPVLib.removeObservers()
108
108
  MPVLib.addObserver(observer)
109
- MPVLib.observeProperty("demuxer-cache-time", MPVLib.MpvFormat.MPV_FORMAT_INT64)
110
- MPVLib.observeProperty("duration", MPVLib.MpvFormat.MPV_FORMAT_INT64)
111
- MPVLib.observeProperty("eof-reached", MPVLib.MpvFormat.MPV_FORMAT_FLAG)
112
- MPVLib.observeProperty("paused-for-cache", MPVLib.MpvFormat.MPV_FORMAT_FLAG)
113
- MPVLib.observeProperty("seekable", MPVLib.MpvFormat.MPV_FORMAT_FLAG)
114
- MPVLib.observeProperty("speed", MPVLib.MpvFormat.MPV_FORMAT_DOUBLE)
115
- MPVLib.observeProperty("time-pos", MPVLib.MpvFormat.MPV_FORMAT_INT64)
116
- MPVLib.observeProperty("track-list", MPVLib.MpvFormat.MPV_FORMAT_STRING)
109
+
110
+ MPVLib.observeProperty("demuxer-cache-time", MPV_FORMAT_DOUBLE)
111
+ MPVLib.observeProperty("duration", MPV_FORMAT_DOUBLE)
112
+ MPVLib.observeProperty("eof-reached", MPV_FORMAT_FLAG)
113
+ MPVLib.observeProperty("paused-for-cache", MPV_FORMAT_FLAG)
114
+ MPVLib.observeProperty("seekable", MPV_FORMAT_FLAG)
115
+ MPVLib.observeProperty("speed", MPV_FORMAT_DOUBLE)
116
+ MPVLib.observeProperty("time-pos", MPV_FORMAT_DOUBLE)
117
+ MPVLib.observeProperty("track-list", MPV_FORMAT_STRING)
118
+
117
119
  } catch (e: Exception) {
118
120
  logException(e)
119
121
  if (!SWALLOW){
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-libmpv",
3
- "version": "0.4.1",
3
+ "version": "0.4.3",
4
4
  "description": "A libmpv Fabric component for Android",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",