mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-04-20 03:24:50 +00:00
Fix clear playback notification, Update V8 Library, Close modified requests after usage
This commit is contained in:
parent
c5dd90048f
commit
ed2aa848da
3 changed files with 6 additions and 3 deletions
|
@ -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)
|
||||
|
||||
//JS
|
||||
implementation("com.caoccao.javet:javet-android:2.2.1")
|
||||
implementation("com.caoccao.javet:javet-android:3.0.2")
|
||||
|
||||
//Exoplayer
|
||||
implementation 'androidx.media3:media3-exoplayer:1.2.0'
|
||||
|
|
|
@ -40,6 +40,7 @@ class JSRequestModifier: IRequestModifier {
|
|||
} as V8ValueObject;
|
||||
|
||||
val req = JSRequest(_plugin, result, url, headers);
|
||||
result.close();
|
||||
return req;
|
||||
}
|
||||
|
||||
|
|
|
@ -153,7 +153,7 @@ class MediaPlaybackService : Service() {
|
|||
|
||||
fun closeMediaSession() {
|
||||
Logger.v(TAG, "closeMediaSession");
|
||||
stopForeground(STOP_FOREGROUND_DETACH);
|
||||
stopForeground(STOP_FOREGROUND_REMOVE);
|
||||
|
||||
val focusRequest = _focusRequest;
|
||||
if (focusRequest != null) {
|
||||
|
@ -162,7 +162,9 @@ class MediaPlaybackService : Service() {
|
|||
}
|
||||
_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_bitmap = null;
|
||||
_mediaSession = null;
|
||||
|
|
Loading…
Add table
Reference in a new issue