Comments (5)
OnTaskRemoved
does get called, pasted your code directly into DemoPlaybackService
, but it didn't fix the issue
from media.
Hi @marcbaechinger @nikushaa991 Any Update on issue!!!
Where Media Session Service still remain Even When the App is Terminated during Playback.
from media.
Thanks! I believe this is a duplicate of #805
You can verify if this is the same issue by checking whether onTaskRemoved
is actually called or not. If it's a duplicate, the onTaskRemoved
callback is not called which is the reason why playback continues.
from media.
The music playback ends correctly, or did I misunderstand? I'll check if onTaskRemoved gets called in several hours, although I believe it does get called
from media.
If you try and you see it is called. Can you try to instead of calling pauseAllPlayersAndStopSelf
to release all sessions and then call stopSelf
directly?
In the demo app with a single session that would be:
override fun onTaskRemoved(rootIntent: Intent?) {
mediaLibrarySession.release()
stopSelf()
}
The reason is if that would help, then you have a controller that is still bound to the service when onTaskRemoved
is called. Releasing the session would release all Media3 controller as well that potentially are bound to the service.
from media.
Related Issues (20)
- Add the setter counter part of `Player.getMaxSeekToPreviousPosition()` HOT 2
- Please support rtsp payload type 33 HOT 1
- Exception: Malformed URL (RTSP) HOT 3
- Can the anchor position of a video be changed by effects in a composition? HOT 1
- Playback stops after 60 secs where video continues for 54 sec and audio continues for 6 more seconds HOT 2
- How to dynamically change the audio url using media3 exoplayer? HOT 2
- Crypto key not available: ERROR_DRM_NO_LICENSE HOT 2
- Player.Listener onIsPlayingChanged method not called after the preroll ad on Android 14
- Issue with Surface Handling when Switching Between Two ExoPlayers
- Why ExoPlayer in Android OS shows black preview screen while preview HOT 2
- Provide Option to read unsynced lyrics using Metadata or ID3Tags
- Expose current focus state from `AudioFocusManager`
- OfflineLicenseHelperdownloadLicense stuck
- MediaSessionCompat queue does not use ShuffleOrder
- Presentation Time Offset for MPEG DASH manifests not applied correctly for xHE-AAC and AC4 streams HOT 1
- ExoPlayer signals `Player.STATE_ENDED` with MPD transition from dynamic to static
- Support DisplayManager to output video to type-c (DP) port and only show control on the phone
- EVENT_VIDEO_SIZE_CHANGED not called then video tracks are not supported, but played
- How can I pause the player when we change the HDMI source
- Unable to play Linear DRM: LinearDrm: PlaybackException MediaCodecAudioRenderer error, index=1, format=Format(7, eng, null, audio/mp4a-latm, mp4a.40.2, 93000, en, [-1, -1, -1.0], [2, 48000]), format_supported=YES
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from media.