expo-libmpv 0.5.9 → 0.5.10

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.
@@ -295,6 +295,14 @@ class LibmpvRenderer(
295
295
 
296
296
  try {
297
297
  loadedUrl = url
298
+ val initialSeek = session.seekToSeconds
299
+ if (initialSeek != null && session.needsApply(LibmpvSession.MpvIntent.SEEK)) {
300
+ MPVLib.setOptionString("start", initialSeek.toString())
301
+ session.markApplied(LibmpvSession.MpvIntent.SEEK)
302
+ } else {
303
+ MPVLib.setOptionString("start", "0")
304
+ }
305
+
298
306
  MPVLib.command(
299
307
  arrayOf(
300
308
  "loadfile",
@@ -518,4 +526,4 @@ class LibmpvRenderer(
518
526
  Log.e(TAG, "mpv error", e)
519
527
  }
520
528
  }
521
- }
529
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-libmpv",
3
- "version": "0.5.9",
3
+ "version": "0.5.10",
4
4
  "description": "A libmpv Fabric component for Android",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",