expo-libvlc-player 7.0.35 → 7.0.36
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.
|
@@ -115,11 +115,7 @@ class PictureInPictureManager(
|
|
|
115
115
|
|
|
116
116
|
when (controlType) {
|
|
117
117
|
MediaPlayerConstants.EXTRA_CONTROL_REWIND -> {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
if (time != -1L) {
|
|
121
|
-
player.setTime(time - MediaPlayerConstants.SEEK_STEP_MS)
|
|
122
|
-
}
|
|
118
|
+
player.setTime(player.getTime() - MediaPlayerConstants.SEEK_STEP_MS)
|
|
123
119
|
}
|
|
124
120
|
|
|
125
121
|
MediaPlayerConstants.EXTRA_CONTROL_PLAY -> {
|
|
@@ -131,11 +127,7 @@ class PictureInPictureManager(
|
|
|
131
127
|
}
|
|
132
128
|
|
|
133
129
|
MediaPlayerConstants.EXTRA_CONTROL_FORWARD -> {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
if (time != -1L) {
|
|
137
|
-
player.setTime(time + MediaPlayerConstants.SEEK_STEP_MS)
|
|
138
|
-
}
|
|
130
|
+
player.setTime(player.getTime() + MediaPlayerConstants.SEEK_STEP_MS)
|
|
139
131
|
}
|
|
140
132
|
}
|
|
141
133
|
}
|
|
@@ -284,9 +276,6 @@ class PictureInPictureManager(
|
|
|
284
276
|
|
|
285
277
|
pipView?.let { view ->
|
|
286
278
|
// Black screen workaround
|
|
287
|
-
view.detachPlayerLayout()
|
|
288
|
-
view.attachPlayerLayout(pictureLayout)
|
|
289
|
-
|
|
290
279
|
view.detachPlayerLayout()
|
|
291
280
|
view.post { view.attachPlayerLayout(pictureLayout) }
|
|
292
281
|
}
|
|
@@ -5,7 +5,6 @@ enum MediaPlayerConstants {
|
|
|
5
5
|
static let minPlayerVolume: Int = 0
|
|
6
6
|
static let maxPlayerVolume: Int = 100
|
|
7
7
|
|
|
8
|
-
static let resetDelayMs: Double = 1_000.0
|
|
9
8
|
static let expDelayMultiplier: Double = 1.5
|
|
10
9
|
static let retryDelayMs: Double = 300.0
|
|
11
10
|
static let maxRetryCount: Int = 3
|