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

Video player #816

Merged
merged 1 commit into from
Nov 19, 2021
Merged

Video player #816

merged 1 commit into from
Nov 19, 2021

Conversation

github-actions[bot]
Copy link

@github-actions github-actions bot commented Nov 18, 2021

This PR closes #815 and implements video player support through a new video template filter which transforms a standard html <video> element to a a full fledged video player. The template filter makes use of the popular https://plyr.io/ video player.

This feature doesn't provided video streaming, videos need be downloaded before they can be played. Video streaming using byte serving is provided through Joomlatools Server or adaptive bitrate streaming can be provided by any other external service.

Features

1. HTML5 video player

Plyr is a simple, lightweight, accessible and customizable HTML5, YouTube and Vimeo media player that supports modern browsers. For a complete list of features and customisation options please check: https://github.com/sampotts/plyr#features

2. Lazy video loading

The video player is automatically lazy-loaded using the Lazysizes js library meaning that it's only rendered when the user is close to seeing the video player. This prevents loading videos that are images outside of the initial viewport.

3. Poster image support

Pages can generate an optimised poster image by making use of the features provided by Joomlatools Server. For more info please also see: #812

4. Adapts to users device capabilities and preferences

Pages will consider device capabilities and user preferences to serve the most optimised video format possible for the context of the device and or user. It makes use of:

Rules:

  • If the connection is 2g load lowest quality video (*)
  • If save-data is enabled load lowest quality video (*)

(*) Requires multi quality videos to be available.

Getting started

To use the image filter simple add the filter to your page or layout:

---
@layout: template://pages/document.html
@process:
    filters:
        - video
---

@johanjanssens johanjanssens added this to In progress in v0.22.0 via automation Nov 19, 2021
@johanjanssens johanjanssens merged commit b0032b0 into master Nov 19, 2021
@johanjanssens johanjanssens deleted the feature/815-video branch November 19, 2021 00:06
v0.22.0 automation moved this from In progress to Ready Nov 19, 2021
@johanjanssens johanjanssens mentioned this pull request Nov 23, 2021
@johanjanssens johanjanssens added this to the v0.22.0 milestone Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
v0.22.0
  
Ready
Development

Successfully merging this pull request may close these issues.

Video player
1 participant