expo-libvlc-player 7.0.26 → 7.0.28
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.
|
@@ -602,18 +602,10 @@ class LibVlcPlayerView(
|
|
|
602
602
|
type: String? = "time",
|
|
603
603
|
) {
|
|
604
604
|
mediaPlayer?.let { player ->
|
|
605
|
-
if (
|
|
606
|
-
|
|
607
|
-
player.setPosition(value.toFloat())
|
|
608
|
-
} else {
|
|
609
|
-
player.setTime(value.toLong())
|
|
610
|
-
}
|
|
605
|
+
if (type == "position") {
|
|
606
|
+
player.setPosition(value.toFloat())
|
|
611
607
|
} else {
|
|
612
|
-
|
|
613
|
-
time = (value * getMediaLength().toDouble()).toInt()
|
|
614
|
-
} else {
|
|
615
|
-
time = value.toInt()
|
|
616
|
-
}
|
|
608
|
+
player.setTime(value.toLong())
|
|
617
609
|
}
|
|
618
610
|
}
|
|
619
611
|
}
|
|
@@ -307,10 +307,9 @@ class LibVlcPlayerView: ExpoView {
|
|
|
307
307
|
videoTrack.isSelected = false
|
|
308
308
|
videoTrack.isSelectedExclusively = true
|
|
309
309
|
|
|
310
|
+
// Black screen workaround
|
|
310
311
|
DispatchQueue.main.async {
|
|
311
|
-
|
|
312
|
-
player.time = VLCTime(int: player.time.intValue)
|
|
313
|
-
}
|
|
312
|
+
player.time = VLCTime(int: player.time.intValue)
|
|
314
313
|
}
|
|
315
314
|
}
|
|
316
315
|
|
|
@@ -466,18 +465,10 @@ class LibVlcPlayerView: ExpoView {
|
|
|
466
465
|
|
|
467
466
|
func seek(_ value: Double, _ type: String? = "time") {
|
|
468
467
|
if let player = mediaPlayer {
|
|
469
|
-
if
|
|
470
|
-
|
|
471
|
-
player.position = value
|
|
472
|
-
} else {
|
|
473
|
-
player.time = VLCTime(int: Int32(value))
|
|
474
|
-
}
|
|
468
|
+
if type == "position" {
|
|
469
|
+
player.position = value
|
|
475
470
|
} else {
|
|
476
|
-
|
|
477
|
-
time = Int(value * Double(getMediaLength()))
|
|
478
|
-
} else {
|
|
479
|
-
time = Int(value)
|
|
480
|
-
}
|
|
471
|
+
player.time = VLCTime(int: Int32(value))
|
|
481
472
|
}
|
|
482
473
|
}
|
|
483
474
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-libvlc-player",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.28",
|
|
4
4
|
"description": "LibVLC Player for Expo",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@types/react": "^19.2.14",
|
|
37
37
|
"eslint": "^9.39.4",
|
|
38
38
|
"eslint-config-universe": "^15.0.3",
|
|
39
|
-
"expo": "~55.0.
|
|
39
|
+
"expo": "~55.0.24",
|
|
40
40
|
"husky": "^9.1.7",
|
|
41
41
|
"lint-staged": "^16.4.0",
|
|
42
42
|
"prettier": "^3.8.3",
|