AdBreak title handling
This commit is contained in:
parent
ad37766f94
commit
1a1b1b06c3
2 changed files with 8 additions and 4 deletions
|
|
@ -149,8 +149,8 @@ I used this project to test the capabilities of the following technologies:
|
|||
## Roadmap
|
||||
|
||||
* CC in Expanded Controls (iOS)
|
||||
* Handle Ad Break (ad title)
|
||||
* Handle queue
|
||||
* Expanded Controls cosmetics (ad in progress bar, full screen, progress bar handle)
|
||||
* Handle mini-player
|
||||
* Handle queue
|
||||
* Handle progress seek
|
||||
* Understand if it is better to refactor using streams instead of listeners
|
||||
|
|
@ -39,12 +39,16 @@ class ExpandedControlsAdInfoControls extends StatelessWidget {
|
|||
return Spacer();
|
||||
}
|
||||
|
||||
final adBreakClipInfo = mediaStatus?.mediaInfo?.adBreakClips
|
||||
?.firstWhere((a) => a?.id == adBreakClipId, orElse: () => null);
|
||||
final adTitle = adBreakClipInfo?.title ?? "";
|
||||
|
||||
return Expanded(
|
||||
child: Column(
|
||||
children: [
|
||||
const Spacer(flex: 2),
|
||||
const ExpandedControlsHighlightedText(
|
||||
text: "Ad Title", // TODO: retrieve ad title from API
|
||||
ExpandedControlsHighlightedText(
|
||||
text: adTitle,
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
Expanded(
|
||||
|
|
|
|||
Loading…
Reference in a new issue