-
Notifications
You must be signed in to change notification settings - Fork 414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle non playable items in playlists. #7578
Conversation
@@ -34,12 +34,38 @@ const select = (state, props) => { | |||
const playingUri = selectPlayingUri(state); | |||
const collectionId = urlParams.get(COLLECTIONS_CONSTS.COLLECTION_ID) || (playingUri && playingUri.collectionId); | |||
const isMarkdownOrComment = playingUri && (playingUri.source === 'markdown' || playingUri.source === 'comment'); | |||
const isClaimPlayable = (uri) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think if we've gotten to videoViewer, we've should already know if it's playable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some logic may also go in page/show/view.jsx
which selects the first collection item and redirects there.
|
||
let nextRecommendedUri; | ||
let previousListUri; | ||
if (collectionId) { | ||
nextRecommendedUri = makeSelectNextUrlForCollectionAndUrl(collectionId, uri)(state); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should do a makeSelectNextPlayableUrl..
etc. Keep the logic in the same place. What do you think?
…tNextPlayableUrlFromCollectionAndUrl
This is good. Will file a ticket for view progress being falsely 100% when file starts playing. |
Fixes
Issue Number: #7575
What is the current behavior?
Only videos and audio can be added to playlists.
What is the new behavior?
All types of claims can be included in the playlists.
When played:
When played, all the items will be displayed in the claim list. The reason for this is to show the user the content of the list and not confuse the user as to what the list contains.
Other information
PR Checklist
Toggle...
What kind of change does this PR introduce?
Please check all that apply to this PR using "x":