-
Notifications
You must be signed in to change notification settings - Fork 8
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
JW Player #433
JW Player #433
Conversation
size-limit report 📦
|
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.
You squashed commits, nice 👍
Please polish one thing in commit messages:
- [cxl-jw-player]
+ cxl-jw-player
Co-authored-by: Andrew Noblet <[email protected]> feat(cxl-ui): tweak jw player component Co-authored-by: Andrew Noblet <[email protected]> feat(cxl-ui): rename caption mixin to transcript mixin Co-authored-by: Andrew Noblet <[email protected]> feat(cxl-ui): tweak transcript mixin Co-authored-by: Andrew Noblet <[email protected]> feat(cxl-ui): rename chapter mixin to chapter navigation mixin Co-authored-by: Andrew Noblet <[email protected]> feat(cxl-ui): tweak chapter navigation mixin Co-authored-by: Andrew Noblet <[email protected]> feat(cxl-ui): add cxl-jw-player-transcript element Co-authored-by: Andrew Noblet <[email protected]> feat: cleanup, refactor & improve the code for PHP `cxl/jw-player` * jw-player height tweaks * [jw-player] add support for sources cherry-pick: #236 * cxl-jw-player set up api endpoint cherry-pick: #234
…d, librarySource feat(cxl-ui): cxl-jw-player add hidden property style feat(cxl-ui): cxl-jw-player set container display and height feat(cxl-ui): cxl-jw-player fix playlist story feat(cxl-ui): cxl-jw-player fix playlist styles feat(cxl-ui): cxl-jw-player add next up CTA feat(cxl-ui): cxl-jw-player hide default next up overlay feat(cxl-ui): cxl-jw-player add pointer events to the link not the container feat(cxl-ui): cxl-jw-player move next up styles to the global directory feat(cxl-ui): cxl-jw-player refactor private methods and properties to protected feat(cxl-ui): cxl-jw-player refactor for playlists feat(cxl-ui): cxl-jw-player move styles to global directory feat(cxl-ui): cxl-jw-player remove save position endpoint request feat(cxl-ui): cxl-jw-player add the ability to save the playback rate feat(cxl-ui): cxl-jw-player add the ability to play protected content feat(cxl-ui): cxl-jw-player fix media and playlist source url feat(cxl-ui): cxl-jw-player fix and improve next up feature feat(cxl-ui): cxl-jw-player remove api secret default value feat(cxl-ui): cxl-jw-player fix save position when using a playlist
feat(cxl-ui): cxl-jw-player fix chapter navigation when using playlists feat(cxl-ui): cxl-jw-player fix CTA pointer events feat(cxl-ui): cxl-jw-player fix saving position when using a playlist feat(cxl-ui): cxl-jw-player update component references feat(cxl-ui): cxl-jw-player fix poor refactoring
84f1ba6
to
702065a
Compare
I managed to run a player on WPS. Component requires to pass @lkraav @anoblet your thoughts? EDIT |
packages/cxl-ui/src/components/cxl-jw-player/mixins/BaseMixin.js
Outdated
Show resolved
Hide resolved
packages/cxl-ui/src/components/cxl-jw-player/mixins/BaseMixin.js
Outdated
Show resolved
Hide resolved
export { BaseMixin } from './BaseMixin'; | ||
export { ChapterNavigationMixin } from './chapter-navigation/index.js'; | ||
export { NextUpMixin } from './NextUpMixin'; | ||
export { StateMixin } from './StateMixin'; | ||
export { TranscriptMixin } from './TranscriptMixin'; |
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.
"kebab-case everywhere" possible?
Maybe we can also install https://github.com/loeffel-io/ls-lint one day.
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'm trying to remember the reason for using pascal case vs. kebab case for mixins. I'll take a look and find a standard.
Maybe component should get signed URL as param, e.g. https://cdn.jwplayer.com/v2/media/fVRbGa56?sources=hls&token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3MjcwOTk2MTQsInJlc291cmNlIjoidjIvbWVkaWEvZlZSYkdhNTYifQ.ZWjguN1Rya0rHXz-kH3TomHINFwp_-NA6oBcnDwrNAU and inside fetch data, process it and display what needs to be displayed? Using REST API endpoint requires authentication too so some kind of secret would be still needed. With signing on the server side and providing signed URL we have this problem solved. |
Undoubtedly there's documented best practices out there for this age old problem, I'd welcome a link to a worthy guide? |
We saw this as a potential issue. Instead of providing |
a61f29b
to
2a873b4
Compare
As API request or straighforward I personally would pass signed URL. |
ChatGPT suggests using signing API: https://chatgpt.com/share/66f18132-43dc-8002-95ab-4f699f384976 As can seen above, I considered it too but managing REST API endpoint and authenticating request seems to be overengineering in our case when I can just output HTML with webcomponent having already signed URL. And cached URL |
This would be the full signed URL. There are two different types of signed URL, JWT and non JWT, we would need them both: https://docs.jwplayer.com/platform/reference/protect-your-content-with-signed-urls |
Oh, indeed. Good catch @anoblet. I didn't see it before but now see JWT is used for a video and non JWP for library. So we'd need two arguments:
or it's more complex? Anyway, please adjust the component for the new approach. Save in new commits, do not overwrite existing just in case we'd like to get back to the past version @anoblet |
This is already supported with
|
018e719
to
6de900e
Compare
af50481
to
88913ef
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.
2 more things on ClickUp
<vaadin-checkbox | ||
@change=${this._toggleShouldScroll} | ||
?checked=${this._shouldScroll} | ||
label="Scroll" | ||
></vaadin-checkbox> |
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.
It's not visible. Is it needed?
@anoblet I have a suspicion |
I only see it imported in |
Continued here: https://app.clickup.com/t/apru1v?comment=90140065293863 |
dc20c6a
to
3143869
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.
Commit messages could be more precise
- feat(cxl-ui): cxl-jw-player add scroll to feature when pressing enter
+ feat(cxl-ui): cxl-jw-player transcript scroll to next result when pressing enter
- feat(cxl-ui): cxl-jw-player remove empty tracks
+ feat(cxl-ui): cxl-jw-player transcript remove empty tracks
packages/cxl-ui/src/components/cxl-jw-player/mixins/TranscriptMixin.js
Outdated
Show resolved
Hide resolved
packages/cxl-ui/src/components/cxl-jw-player/mixins/TranscriptMixin.js
Outdated
Show resolved
Hide resolved
0c3b937
to
e179515
Compare
6a6af4d
to
464df2f
Compare
https://app.clickup.com/t/3tnvw4y