-
Notifications
You must be signed in to change notification settings - Fork 377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sometimes generate TransactionTooLargeException #94
Comments
Can you shed some light on what you are doing when this happens? How many media items are you setting? What properties of the media items/metadata do you set? |
I just call MediaItem.Builder()
.setRequestMetadata(
MediaItem.RequestMetadata.Builder()
.setMediaUri("file absolute path")
.build()
)
.build() In AudioService, metadataBuilder.run {
setTitle(cursor.getString(columnIndexOfTitle))
setDurationStr(cursor.getLong(columnIndexOfDuration).formatToVideoDuration())
setArtist(cursor.getString(columnIndexOfArtist))
setFolderType(MediaMetadata.FOLDER_TYPE_NONE)
setIsPlayable(true)
}
list.add(
MediaItem.Builder()
.setRequestMetadata(
MediaItem.RequestMetadata.Builder().setMediaUri(Uri.parse(path)).build()
)
.setMediaMetadata(metadataBuilder.build())
.setMediaId(id)
.setUri(path)
.build()
) When I meet the Exception above, the mediaController's listener in Activity do this: this audio file attached: |
I found something new. |
I may have found the reason, maybe the notification bitmap from SimpleBitmapLoader is too big. But it there are still problem if PlaybackService running in another process. |
I'm not aware that the bitmap loaded by the We have #168 that is about providing a high-res bitmap for the notification. After this is fixed, there should be no need to put binary data into the metadata which seems to avoid the problems described here. I'm closing this as a duplicate of #168. |
Media3 Version
1.0.0-beta01
Devices that reproduce the issue
Samsung galaxy note 10 5G running Android 11
Devices that do not reproduce the issue
No response
Reproducible in the demo app?
Not tested
Reproduction steps
Just call
MediaController.setMediaItems(List<MediaItem> mediaItems, int startIndex, long startPositionMs)
Expected result
normal set
Actual result
Media
Not applicable
Bug Report
adb bugreport
to dev.exoplayer@gmail.com after filing this issue.The text was updated successfully, but these errors were encountered: