expo-libvlc-player 7.0.16 → 7.0.18
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.
|
@@ -15,7 +15,7 @@ object MediaPlayerConstants {
|
|
|
15
15
|
const val EXTRA_CONTROL_FORWARD: Int = 4
|
|
16
16
|
const val SEEK_STEP_MS: Long = 10_000L
|
|
17
17
|
|
|
18
|
-
const val COROUTINE_DELAY_MS: Long =
|
|
18
|
+
const val COROUTINE_DELAY_MS: Long = 1_000L
|
|
19
19
|
const val EXP_DELAY_MULTIPLIER: Double = 1.5
|
|
20
20
|
const val RETRY_DELAY_MS: Double = 300.0
|
|
21
21
|
const val MAX_RETRY_COUNT: Int = 3
|
|
@@ -5,6 +5,7 @@ enum MediaPlayerConstants {
|
|
|
5
5
|
static let minPlayerVolume: Int = 0
|
|
6
6
|
static let maxPlayerVolume: Int = 100
|
|
7
7
|
|
|
8
|
+
static let pipDelayMs: Double = 1_000.0
|
|
8
9
|
static let expDelayMultiplier: Double = 1.5
|
|
9
10
|
static let retryDelayMs: Double = 300.0
|
|
10
11
|
static let maxRetryCount: Int = 3
|
|
@@ -530,12 +530,20 @@ class LibVlcPlayerView: ExpoView {
|
|
|
530
530
|
|
|
531
531
|
func resetPictureInPicture() {
|
|
532
532
|
guard let player = mediaPlayer,
|
|
533
|
-
|
|
534
|
-
|
|
533
|
+
!player.isPlaying,
|
|
534
|
+
let videoTrack = player.videoTracks.first(where: { track in track.isSelected })
|
|
535
|
+
else { return }
|
|
535
536
|
|
|
537
|
+
videoTrack.isSelected = false
|
|
536
538
|
videoTrack.isSelectedExclusively = true
|
|
539
|
+
|
|
537
540
|
player.play()
|
|
538
|
-
|
|
541
|
+
|
|
542
|
+
let deadline = DispatchTime.now() + .milliseconds(Int(MediaPlayerConstants.pipDelayMs))
|
|
543
|
+
|
|
544
|
+
DispatchQueue.main.asyncAfter(deadline: deadline) {
|
|
545
|
+
player.pause()
|
|
546
|
+
}
|
|
539
547
|
}
|
|
540
548
|
|
|
541
549
|
func onStartPictureInPicture() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-libvlc-player",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.18",
|
|
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.19",
|
|
40
40
|
"husky": "^9.1.7",
|
|
41
41
|
"lint-staged": "^16.4.0",
|
|
42
42
|
"prettier": "^3.8.3",
|