-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat(playlist-plugin): enhance configuration options for playlist modal #25
Conversation
|
57c64df
to
b76033d
Compare
b76033d
to
f54ccec
Compare
@jboix sorry I didn't get back to you sooner. I had very quickly looked at the PR, but unfortunately didn't have the time I would have liked to devote to it. However, overall feedback, would it be possible to have something more videojs-like in terms of developer experience? From: player.getChild('playlistMenuDialog').getChild('pillarboxPlaylistMenuItemsList') To: player.getChild('playlistMenuDialog').getChild('pillarboxPlaylistMenuItemsList')
// And
player.playlistMenuDialog.pillarboxPlaylistMenuItemsList From: pillarboxPlaylistUI: {
inserChildBefore: 'subsCapsButton',
modal: {
pauseOnOpen: true,
controls: { shuffleButton: false }
}
} To: pillarboxPlaylistUI: {
inserChildBefore: 'subsCapsButton',
// real component name
playlistMenuDialog: {
pauseOnOpen: true,
// real component name
playlistControls: { shuffleButton: false }
}
} |
34e0f95
to
3ee96bd
Compare
packages/pillarbox-playlist/src/components/modal/pillarbox-playlist-modal.js
Outdated
Show resolved
Hide resolved
packages/pillarbox-playlist/src/components/modal/pillarbox-previous-item-button.js
Outdated
Show resolved
Hide resolved
packages/pillarbox-playlist/src/components/modal/pillarbox-previous-item-button.js
Outdated
Show resolved
Hide resolved
8f47a25
to
678889f
Compare
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.
Thank you for the good work, LGTM!
Resolves #16 by introducing new configuration options that allow integrators to specify which buttons should appear in the playlist modal. Also exposes the modal options. - Added `pillarboxPlaylistMenuDialog` option to configure the modal dialog component. - Exposed `pillarboxPlaylistMenuDialog.pauseOnOpen` option to control whetherWQ the player pauses when the modal is opened. - Added `pillarboxPlaylistMenuDialog.pillarboxPlaylistControls` option to define the order, addition, or remova of the control buttons. ***Other Changes*** - Split the `controls` into individual components that can be registered separately. - Added a test for the playlist plugin UI registration. - Added suffix `pillarboxPlaylist` to all components to avoid naming clashes.
The controlText function was being called with this.localize(text), which resulted in redundant localization.
678889f
to
7c840a9
Compare
🎉 This PR is included in version @srgssr/skip-button-v1.0.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Description
Resolves #16 by introducing new configuration options that allow integrators to specify which buttons should appear in the playlist modal. Also exposes the modal options.
Example
Changes Made
pillarboxPlaylistMenuDialog
option to configure the modal dialog component.pillarboxPlaylistMenuDialog.pauseOnOpen
option to control whether the player pauses when the modal is opened.pillarboxPlaylistMenuDialog.pillarboxPlaylistControls
option to define the order, addition, or removal of the control buttons.pillarboxPlaylistControls
into individual components that can be registered separately.Checklist