mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Set METADATA_KEY_TITLE
Issue: #4292 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=199478946
This commit is contained in:
parent
f59e6e572b
commit
199f686fe1
2 changed files with 5 additions and 2 deletions
|
|
@ -28,6 +28,8 @@
|
||||||
changes ([#4276](https://github.com/google/ExoPlayer/issues/4276)).
|
changes ([#4276](https://github.com/google/ExoPlayer/issues/4276)).
|
||||||
* Fix `MediaCodec.native_setSurface` crash on Moto C
|
* Fix `MediaCodec.native_setSurface` crash on Moto C
|
||||||
([#4315](https://github.com/google/ExoPlayer/issues/4315)).
|
([#4315](https://github.com/google/ExoPlayer/issues/4315)).
|
||||||
|
* Set `METADATA_KEY_TITLE` on media descriptions
|
||||||
|
((#4292)[https://github.com/google/ExoPlayer/issues/4292]).
|
||||||
|
|
||||||
### 2.8.1 ###
|
### 2.8.1 ###
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -600,8 +600,9 @@ public final class MediaSessionConnector {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (description.getTitle() != null) {
|
if (description.getTitle() != null) {
|
||||||
builder.putString(MediaMetadataCompat.METADATA_KEY_DISPLAY_TITLE,
|
String title = String.valueOf(description.getTitle());
|
||||||
String.valueOf(description.getTitle()));
|
builder.putString(MediaMetadataCompat.METADATA_KEY_TITLE, title);
|
||||||
|
builder.putString(MediaMetadataCompat.METADATA_KEY_DISPLAY_TITLE, title);
|
||||||
}
|
}
|
||||||
if (description.getSubtitle() != null) {
|
if (description.getSubtitle() != null) {
|
||||||
builder.putString(MediaMetadataCompat.METADATA_KEY_DISPLAY_SUBTITLE,
|
builder.putString(MediaMetadataCompat.METADATA_KEY_DISPLAY_SUBTITLE,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue