Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,13 @@ private void reLayout(View view) {

private void refreshControlsStyles() {
if (playerControlView == null || player == null || !controls) return;

// Update to the title provided by the source metadata object
Source.Metadata metadata = source.getMetadata();
String title = (metadata != null && metadata.getTitle() != null) ? metadata.getTitle() : "";
TextView titleText = playerControlView.findViewById(R.id.exo_controller_title);
titleText.setText(title);

updateLiveContent();
updatePlayPauseButtons();
updateButtonVisibility(controlsConfig.getHideForward(), R.id.exo_ffwd);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@
android:background="@color/midnight_black"
android:orientation="vertical">

<TextView android:id="@+id/exo_controller_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="@dimen/position_duration_text_size"
android:textStyle="bold"
android:includeFontPadding="false"
android:textColor="@color/white"
/>

<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
Expand Down
4 changes: 4 additions & 0 deletions android/src/main/res/values/ids.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<item name="exo_controller_title" type="id" />
</resources>
Loading