Add "ask to skip" media segment action #4068
Merged
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.
Addition to #4052. This one adds a new action "ask to skip". When enabled for a segment type, this action will show a message on-screen to suggest skipping the segment. This only shows when the segment is at least 3 seconds long and the message disappears 1 second before the segment ends or 8 seconds after it is shown. Opening/closing the playback overlay also resets that timer as the skipping functionality is not working when any other UI is open.
The implementation is a bit of a hack as the player UI is partially leanback, partially custom and now partially compose. When we rewrite the player UI with compose we can make it a bit more integrated with less hacks.
Changes
Screenshots
Issues