Comments (3)
Hi @chop-suey,
Thanks for reporting! Could you please provide us the steps to reproduce on the demo app?
from media.
Hi @tianyif
Thanks for getting back.
Unfortunetaly i cannot reproduce this issue, since it only happens on some devices i do not have at hand. What i forgot to mention, but might be quite important: It only happens when the device language is set to chinese.
There seems to be a problem when the notification for the foreground service is shown in that language. #903 implicates there might be some problem with the duration of the media. But i am not quite sure if that correlates to a language dependent problem.
What we do:
- We play voice messages using media3 as a forground service, where media controls are shown in the notification
- As soon as the player is started (while the language is set to chinese), it crashes with the above stacktrace
from media.
In case it helps debug further, that exception seems to originate here in the framework: https://cs.android.com/android/platform/superproject/main/+/main:frameworks/base/services/core/java/com/android/server/notification/NotificationManagerService.java;l=1396;drc=c11765ac782525cb803ac13886bd61dcdf71e33b
And the message "long overflow
" probably comes from an invocation of one of the Math.xxxExact
methods: https://cs.android.com/android/platform/superproject/main/+/main:libcore/ojluni/src/main/java/java/lang/Math.java
Unfortunately we're obviously missing the stack trace to indicate where the ArithmeticException
is being thrown from.
I wonder if we need to look at the other place we call setWhen
?
It doesn't look obviously problematic though...
Aside: I'm not sure how this code interacts with live playback, when getContentPosition
returns a negative value (https://developer.android.com/media/media3/exoplayer/live-streaming). I think that results in a 'future' timestamp on the notification, which looks like it's permitted: https://developer.android.com/reference/android/app/Notification#when
from media.
Related Issues (20)
- LL-HLS Streams with CMCD enabled lead to ExoPlaybackException HOT 2
- Force reset ExoPlayer internals to generate new audioSessionId and clear audio tracks HOT 1
- How to call setMediaSource method by MediaController? HOT 1
- How to call setMediaSource method by MediaController? HOT 2
- Seamless transitions to clipped items with a second decoder HOT 1
- Exoplayer misinterprets RTSP streams audioInputFormat as mp4a.40.1 instead of mp4a.40.2 HOT 1
- ExoPlayer clarification on DASH Byte-Range request against Player Buffer params' adjustments
- Unable to style default `SubtitleView` of the Media3 ExoPlayer HOT 3
- DefaultDrmSession should handle when key is already available (getKeyRequest() -> REQUEST_TYPE_NONE) HOT 4
- Support for playing Kotlin Multiplatform resources HOT 13
- HLS playback crash on Android 6 and below. HOT 2
- AGP 8.3.0 and newer crash: IllegalAccessError: Illegal class access: 'androidx.media3.session.MediaSessionStub' attempting to access 'com.google.common.util.concurrent.ImmediateFuture' HOT 11
- Media3 Exoplayer subtitle font size increase HOT 2
- Stall in ExoPlayer when EventStream falls out of window and is removed from the DASH manifest
- Sound disappears when custom equalizer is enabled
- Playback Error on Image Track (IllegalArgumentException: x + width must be <= bitmap.width()) HOT 1
- Multiple DRM protection levels in DASH stream with low DRM protection level on device HOT 7
- Captions can't be turned on using Google Assistant HOT 3
- Support for setting the start and end times of playback in TextOverlay. HOT 4
- Media Controllers — Slot reservation
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.