expo-libvlc-player 3.4.18 → 3.4.19
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.
package/android/build.gradle
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
apply plugin: 'com.android.library'
|
|
2
2
|
|
|
3
3
|
group = 'expo.modules.libvlcplayer'
|
|
4
|
-
version = '3.4.
|
|
4
|
+
version = '3.4.19'
|
|
5
5
|
|
|
6
6
|
def expoModulesCorePlugin = new File(project(':expo-modules-core').projectDir.absolutePath, 'ExpoModulesCorePlugin.gradle')
|
|
7
7
|
apply from: expoModulesCorePlugin
|
|
@@ -25,7 +25,7 @@ android {
|
|
|
25
25
|
targetSdkVersion safeExtGet('targetSdkVersion', 35)
|
|
26
26
|
|
|
27
27
|
versionCode 1
|
|
28
|
-
versionName '3.4.
|
|
28
|
+
versionName '3.4.19'
|
|
29
29
|
|
|
30
30
|
consumerProguardFiles('proguard-rules.pro')
|
|
31
31
|
}
|
|
@@ -12,39 +12,23 @@ import expo.modules.libvlcplayer.managers.MediaPlayerManager
|
|
|
12
12
|
import expo.modules.libvlcplayer.records.Slave
|
|
13
13
|
import expo.modules.libvlcplayer.records.Tracks
|
|
14
14
|
|
|
15
|
-
private
|
|
16
|
-
private const val PLAYING_EVENT = "onPlaying"
|
|
17
|
-
private const val PAUSED_EVENT = "onPaused"
|
|
18
|
-
private const val STOPPED_EVENT = "onStopped"
|
|
19
|
-
private const val END_REACHED_EVENT = "onEndReached"
|
|
20
|
-
private const val ENCOUNTERED_ERROR_EVENT = "onEncounteredError"
|
|
21
|
-
private const val DIALOG_DISPLAY_EVENT = "onDialogDisplay"
|
|
22
|
-
private const val TIME_CHANGED_EVENT = "onTimeChanged"
|
|
23
|
-
private const val POSITION_CHANGED_EVENT = "onPositionChanged"
|
|
24
|
-
private const val ES_ADDED_EVENT = "onESAdded"
|
|
25
|
-
private const val RECORD_CHANGED_EVENT = "onRecordChanged"
|
|
26
|
-
private const val SNAPSHOT_TAKEN_EVENT = "onSnapshotTaken"
|
|
27
|
-
private const val FIRST_PLAY_EVENT = "onFirstPlay"
|
|
28
|
-
private const val FOREGROUND_EVENT = "onForeground"
|
|
29
|
-
private const val BACKGROUND_EVENT = "onBackground"
|
|
30
|
-
|
|
31
|
-
val playerEvents =
|
|
15
|
+
private val PLAYER_EVENTS =
|
|
32
16
|
arrayOf(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
17
|
+
"onBuffering",
|
|
18
|
+
"onPlaying",
|
|
19
|
+
"onPaused",
|
|
20
|
+
"onStopped",
|
|
21
|
+
"onEndReached",
|
|
22
|
+
"onEncounteredError",
|
|
23
|
+
"onDialogDisplay",
|
|
24
|
+
"onTimeChanged",
|
|
25
|
+
"onPositionChanged",
|
|
26
|
+
"onESAdded",
|
|
27
|
+
"onRecordChanged",
|
|
28
|
+
"onSnapshotTaken",
|
|
29
|
+
"onFirstPlay",
|
|
30
|
+
"onForeground",
|
|
31
|
+
"onBackground",
|
|
48
32
|
)
|
|
49
33
|
|
|
50
34
|
class LibVlcPlayerModule : Module() {
|
|
@@ -79,7 +63,7 @@ class LibVlcPlayerModule : Module() {
|
|
|
79
63
|
}
|
|
80
64
|
|
|
81
65
|
View(LibVlcPlayerView::class) {
|
|
82
|
-
Events(
|
|
66
|
+
Events(PLAYER_EVENTS)
|
|
83
67
|
|
|
84
68
|
Prop("source") { view: LibVlcPlayerView, source: String? ->
|
|
85
69
|
view.source = source
|
|
@@ -1,37 +1,21 @@
|
|
|
1
1
|
import ExpoModulesCore
|
|
2
2
|
|
|
3
|
-
private let
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
let playerEvents = [
|
|
20
|
-
bufferingEvent,
|
|
21
|
-
playingEvent,
|
|
22
|
-
pausedEvent,
|
|
23
|
-
stoppedEvent,
|
|
24
|
-
endReachedEvent,
|
|
25
|
-
encounteredErrorEvent,
|
|
26
|
-
dialogDisplayEvent,
|
|
27
|
-
timeChangedEvent,
|
|
28
|
-
positionChangedEvent,
|
|
29
|
-
esAddedEvent,
|
|
30
|
-
recordChangedEvent,
|
|
31
|
-
snapshotTakenEvent,
|
|
32
|
-
firstPlayEvent,
|
|
33
|
-
foregroundEvent,
|
|
34
|
-
backgroundEvent,
|
|
3
|
+
private let playerEvents = [
|
|
4
|
+
"onBuffering",
|
|
5
|
+
"onPlaying",
|
|
6
|
+
"onPaused",
|
|
7
|
+
"onStopped",
|
|
8
|
+
"onEndReached",
|
|
9
|
+
"onEncounteredError",
|
|
10
|
+
"onDialogDisplay",
|
|
11
|
+
"onTimeChanged",
|
|
12
|
+
"onPositionChanged",
|
|
13
|
+
"onESAdded",
|
|
14
|
+
"onRecordChanged",
|
|
15
|
+
"onSnapshotTaken",
|
|
16
|
+
"onFirstPlay",
|
|
17
|
+
"onForeground",
|
|
18
|
+
"onBackground",
|
|
35
19
|
]
|
|
36
20
|
|
|
37
21
|
public class LibVlcPlayerModule: Module {
|