feat(ios): detect livestreams in now playing notification #3922
+11
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…am playing
This addresses part of #3902
Apple however does encourage going further, "Consider indicating the progress of currently playing live content. People appreciate knowing where they’ll land when they jump into in-progress live content. You can use a progress bar or other indicator to show people how much content remains." (source: Apple Design Guidelines). However , Apple does not indicate if this goes for the minimal view of a Now Playing view. So this may be sufficient for many developers and audiences.
To test the change,
show notification controls
on the ui,Summary
Adds "LIVE" decorator to livestream notification (now playing)
Playback (can't remember which it was in example):
Live (red bull live, another live sample):
Motivation
Saw that livestreams in our app show just ---- ---- which is what some apps (AP News, CNN (their pause/play doesn't work correctly though)) do on iOS but a few we saw show a LIVE decorator. To ensure our audience understand what is being shown, we should add this code.
iOS Apps that show --_-- on each side of a livestream now playing control center view: Fox (doesn't allow background play), FM Radio, NBC
Changes
Added a check to determine if live content is currently playing
Test plan
None