expo-libvlc-player 7.0.33 → 7.0.35
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/src/main/java/expo/modules/libvlcplayer/LibVlcPlayerModule.kt +0 -1
- package/android/src/main/java/expo/modules/libvlcplayer/managers/KeepAwakeManager.kt +2 -2
- package/ios/LibVlcPlayerModule.swift +0 -1
- package/ios/Managers/AudioSessionManager.swift +6 -4
- package/ios/Managers/KeepAwakeManager.swift +2 -2
- package/package.json +4 -6
|
@@ -17,7 +17,7 @@ class KeepAwakeManager(
|
|
|
17
17
|
view.mediaPlayer?.isPlaying() == true
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
fun activateKeepAwake() {
|
|
20
|
+
private fun activateKeepAwake() {
|
|
21
21
|
activity.let { activity ->
|
|
22
22
|
activity.runOnUiThread {
|
|
23
23
|
activity.window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)
|
|
@@ -25,7 +25,7 @@ class KeepAwakeManager(
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
fun deactivateKeepAwake() {
|
|
28
|
+
private fun deactivateKeepAwake() {
|
|
29
29
|
activity.let { activity ->
|
|
30
30
|
activity.runOnUiThread {
|
|
31
31
|
activity.window.clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)
|
|
@@ -51,10 +51,12 @@ class AudioSessionManager {
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
54
|
+
if anyPlayingView || doNotMixOverride {
|
|
55
|
+
do {
|
|
56
|
+
try audioSession.setActive(true)
|
|
57
|
+
} catch {
|
|
58
|
+
log.warn("Failed to set the audio session")
|
|
59
|
+
}
|
|
58
60
|
}
|
|
59
61
|
}
|
|
60
62
|
|
|
@@ -3,13 +3,13 @@ class KeepAwakeManager {
|
|
|
3
3
|
|
|
4
4
|
private lazy var expoViews = MediaPlayerManager.shared.expoViews
|
|
5
5
|
|
|
6
|
-
func activateKeepAwake() {
|
|
6
|
+
private func activateKeepAwake() {
|
|
7
7
|
DispatchQueue.main.async {
|
|
8
8
|
UIApplication.shared.isIdleTimerDisabled = true
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
func deactivateKeepAwake() {
|
|
12
|
+
private func deactivateKeepAwake() {
|
|
13
13
|
DispatchQueue.main.async {
|
|
14
14
|
UIApplication.shared.isIdleTimerDisabled = false
|
|
15
15
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-libvlc-player",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.35",
|
|
4
4
|
"description": "LibVLC Player for Expo",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -31,17 +31,15 @@
|
|
|
31
31
|
"license": "MIT",
|
|
32
32
|
"homepage": "https://github.com/cornejobarraza/expo-libvlc-player#readme",
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@
|
|
35
|
-
"@eslint/eslintrc": "^3.3.5",
|
|
36
|
-
"@types/react": "^19.2.14",
|
|
34
|
+
"@types/react": "^19.2.15",
|
|
37
35
|
"eslint": "^9.39.4",
|
|
38
|
-
"eslint-config-universe": "^15.0
|
|
36
|
+
"eslint-config-universe": "^15.2.0",
|
|
39
37
|
"expo": "~55.0.26",
|
|
40
38
|
"husky": "^9.1.7",
|
|
41
39
|
"lint-staged": "^16.4.0",
|
|
42
40
|
"prettier": "^3.8.3",
|
|
43
41
|
"react-native": "0.83.6",
|
|
44
|
-
"typescript": "~5.9.
|
|
42
|
+
"typescript": "~5.9.3"
|
|
45
43
|
},
|
|
46
44
|
"peerDependencies": {
|
|
47
45
|
"expo": "*",
|