mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-05-29 04:50:19 +02:00
Fix clear playback notification, Update V8 Library, Close modified requests after usage
This commit is contained in:
parent
c5dd90048f
commit
ed2aa848da
@ -169,7 +169,7 @@ dependencies {
|
|||||||
implementation 'com.google.code.gson:gson:2.10.1' //Used for complex/anonymous cases like during development conversions (eg. V8RemoteObject)
|
implementation 'com.google.code.gson:gson:2.10.1' //Used for complex/anonymous cases like during development conversions (eg. V8RemoteObject)
|
||||||
|
|
||||||
//JS
|
//JS
|
||||||
implementation("com.caoccao.javet:javet-android:2.2.1")
|
implementation("com.caoccao.javet:javet-android:3.0.2")
|
||||||
|
|
||||||
//Exoplayer
|
//Exoplayer
|
||||||
implementation 'androidx.media3:media3-exoplayer:1.2.0'
|
implementation 'androidx.media3:media3-exoplayer:1.2.0'
|
||||||
|
@ -40,6 +40,7 @@ class JSRequestModifier: IRequestModifier {
|
|||||||
} as V8ValueObject;
|
} as V8ValueObject;
|
||||||
|
|
||||||
val req = JSRequest(_plugin, result, url, headers);
|
val req = JSRequest(_plugin, result, url, headers);
|
||||||
|
result.close();
|
||||||
return req;
|
return req;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -153,7 +153,7 @@ class MediaPlaybackService : Service() {
|
|||||||
|
|
||||||
fun closeMediaSession() {
|
fun closeMediaSession() {
|
||||||
Logger.v(TAG, "closeMediaSession");
|
Logger.v(TAG, "closeMediaSession");
|
||||||
stopForeground(STOP_FOREGROUND_DETACH);
|
stopForeground(STOP_FOREGROUND_REMOVE);
|
||||||
|
|
||||||
val focusRequest = _focusRequest;
|
val focusRequest = _focusRequest;
|
||||||
if (focusRequest != null) {
|
if (focusRequest != null) {
|
||||||
@ -162,7 +162,9 @@ class MediaPlaybackService : Service() {
|
|||||||
}
|
}
|
||||||
_hasFocus = false;
|
_hasFocus = false;
|
||||||
|
|
||||||
_notificationManager?.cancel(MEDIA_NOTIF_ID);
|
val notifManager = _notificationManager;
|
||||||
|
Logger.i(TAG, "Cancelling playback notification (notifManager: ${notifManager != null})");
|
||||||
|
notifManager?.cancel(MEDIA_NOTIF_ID);
|
||||||
_notif_last_video = null;
|
_notif_last_video = null;
|
||||||
_notif_last_bitmap = null;
|
_notif_last_bitmap = null;
|
||||||
_mediaSession = null;
|
_mediaSession = null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user