expo-libvlc-player 6.1.14 → 6.1.16
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.
|
@@ -262,7 +262,7 @@ class LibVlcPlayerView(
|
|
|
262
262
|
selectTrack(spuTrack, IMedia.Track.Type.Text)
|
|
263
263
|
}
|
|
264
264
|
|
|
265
|
-
fun addPlayerSlaves() {
|
|
265
|
+
fun addPlayerSlaves(slaves: List<Slave>) {
|
|
266
266
|
slaves.forEach { slave ->
|
|
267
267
|
val source = slave.source
|
|
268
268
|
val type = slave.type
|
|
@@ -343,7 +343,7 @@ class LibVlcPlayerView(
|
|
|
343
343
|
fun setupPlayer() {
|
|
344
344
|
post {
|
|
345
345
|
mediaPlayer?.let { player ->
|
|
346
|
-
addPlayerSlaves()
|
|
346
|
+
addPlayerSlaves(slaves)
|
|
347
347
|
|
|
348
348
|
if (scale != MediaPlayerConstants.DEFAULT_PLAYER_SCALE) {
|
|
349
349
|
player.setScale(scale)
|
|
@@ -499,7 +499,7 @@ class LibVlcPlayerView(
|
|
|
499
499
|
field = field.apply { addAll(newSlaves) }
|
|
500
500
|
|
|
501
501
|
if (!newSlaves.isEmpty()) {
|
|
502
|
-
addPlayerSlaves()
|
|
502
|
+
addPlayerSlaves(newSlaves)
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
505
|
|
|
@@ -598,7 +598,10 @@ class LibVlcPlayerView(
|
|
|
598
598
|
|
|
599
599
|
mediaPlayer?.let { player ->
|
|
600
600
|
val shouldPause = condition == true && player.isPlaying()
|
|
601
|
-
|
|
601
|
+
|
|
602
|
+
if (shouldPause) {
|
|
603
|
+
player.pause()
|
|
604
|
+
}
|
|
602
605
|
}
|
|
603
606
|
}
|
|
604
607
|
}
|
|
@@ -157,7 +157,7 @@ class LibVlcPlayerView: ExpoView {
|
|
|
157
157
|
selectTrack(textTrack, .text)
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
func addPlayerSlaves() {
|
|
160
|
+
func addPlayerSlaves(_ slaves: [Slave]) {
|
|
161
161
|
for slave in slaves {
|
|
162
162
|
let source = slave.source
|
|
163
163
|
let type = slave.type
|
|
@@ -220,7 +220,7 @@ class LibVlcPlayerView: ExpoView {
|
|
|
220
220
|
guard let self else { return }
|
|
221
221
|
|
|
222
222
|
if let player = mediaPlayer {
|
|
223
|
-
addPlayerSlaves()
|
|
223
|
+
addPlayerSlaves(slaves)
|
|
224
224
|
|
|
225
225
|
if scale != MediaPlayerConstants.defaultPlayerScale {
|
|
226
226
|
player.scaleFactor = scale
|
|
@@ -360,7 +360,7 @@ class LibVlcPlayerView: ExpoView {
|
|
|
360
360
|
_slaves += newSlaves
|
|
361
361
|
|
|
362
362
|
if !newSlaves.isEmpty {
|
|
363
|
-
addPlayerSlaves()
|
|
363
|
+
addPlayerSlaves(newSlaves)
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
366
|
}
|
|
@@ -442,7 +442,10 @@ class LibVlcPlayerView: ExpoView {
|
|
|
442
442
|
func pauseIf(_ condition: Bool? = true) {
|
|
443
443
|
if let player = mediaPlayer {
|
|
444
444
|
let shouldPause = condition == true && player.isPlaying
|
|
445
|
-
|
|
445
|
+
|
|
446
|
+
if shouldPause {
|
|
447
|
+
player.pause()
|
|
448
|
+
}
|
|
446
449
|
}
|
|
447
450
|
}
|
|
448
451
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-libvlc-player",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.16",
|
|
4
4
|
"description": "LibVLC Player for Expo",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@eslint/js": "^9.39.4",
|
|
40
40
|
"@types/react": "~19.2.10",
|
|
41
41
|
"eslint": "^9.39.4",
|
|
42
|
-
"expo": "~55.0.
|
|
42
|
+
"expo": "~55.0.12",
|
|
43
43
|
"expo-module-scripts": "^55.0.2",
|
|
44
44
|
"globals": "^16.5.0",
|
|
45
45
|
"husky": "^9.1.7",
|