Skip to content
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

Add Video player page #229

Merged
merged 2 commits into from
Jun 20, 2024
Merged

Add Video player page #229

merged 2 commits into from
Jun 20, 2024

Conversation

dan-niles
Copy link
Collaborator

@dan-niles dan-niles commented Jun 18, 2024

This PR adds the video player for the new UI.

  • Set up video.js with support for subtitles and variable playback rates.
  • Added channel_description and channel_joined_date to the Author schema so that we can display channel information easily in the video player page.
  • Included webp-hero for WebP support in unsupported browsers.
  • Added a Cypress test for video player page.

Note: ogv.js has not been setup yet. I've created #230 to track it seperately.

Closes #215
Closes #174

@dan-niles dan-niles self-assigned this Jun 18, 2024
@dan-niles dan-niles marked this pull request as ready for review June 18, 2024 09:02
@dan-niles dan-niles requested a review from benoit74 June 18, 2024 09:16
Copy link
Collaborator

@benoit74 benoit74 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two small inline comments.

Regarding WebP support, I unfortunately cannot test it on my machines. And I'm not even sure I should. I've opened openzim/overview#36 to discuss this topic openly, because I begin to consider we might be loosing our precious time with this WebP / WebM polyfills.

zimui/src/views/VideoPlayerView.vue Show resolved Hide resolved
zimui/src/views/VideoPlayerView.vue Show resolved Hide resolved
Copy link
Collaborator

@benoit74 benoit74 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@benoit74 benoit74 merged commit cb5f274 into main Jun 20, 2024
7 checks passed
@benoit74 benoit74 deleted the video-player-page branch June 20, 2024 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UI Revamp: Single Video Player Page Video viewer should allow change of reading speed
2 participants