Change Varbase Video Player behavior on clicking on videos with cover images. Supporting Drimage changes for locally hosted and remote videos

Created on 15 November 2022, over 1 year ago
Updated 29 May 2023, about 1 year ago

Problem/Motivation

Proposed resolution

Switch selectors on the js-video-player-icon class for:

  • Locally Hosted Video
            if (
              $(this)
                .closest(".media")
                .find(".varbase-video-player > video")
                .length > 0
            ) {
              $(this)
                .closest(".media")
                .find(".varbase-video-player > video")
                .get(0)
                .play();
            }
    
  • Remote Youtube Video
            if (
              $(this)
                .closest(".media")
                .find('.varbase-video-player > iframe[src*="youtube.com"]')
                .length > 0
            ) {
              const closestYoutubeIframe = $(this)
                .closest(".media")
                .find('.varbase-video-player > iframe[src*="youtube.com"]')
                .get(0).contentWindow;
              closestYoutubeIframe.postMessage("play", "*");
            }
  • Remote Vimeo Video
            if (
              $(this)
                .closest(".media")
                .find('.varbase-video-player > iframe[src*="vimeo.com"]'
                ).length > 0
            ) {
              const closestVimeoIframe = $(this)
                .closest(".media")
                .find('.varbase-video-player > iframe[src*="vimeo.com"]')
                .get(0).contentWindow;
              closestVimeoIframe.postMessage("play", "*");
            }
    

Remaining tasks

  • βœ… File an issue about this project
  • βœ… Addition/Change/Update/Fix to this project
  • βœ… Testing to ensure no regression
  • βž– Automated unit/functional testing coverage
  • βž– Developer Documentation support on feature change/addition
  • βž– User Guide Documentation support on feature change/addition
  • βž– Accessibility and Readability
  • βœ… Code review from 1 Varbase core team member
  • βœ… Full testing and approval
  • βœ… Credit contributors
  • βœ… Review with the product owner
  • βœ… Update Release Notes and Update Helper on new feature change/addition
  • βœ… Release varbase-10.0.0-alpha1 β†’ , varbase_media-10.0.0-alpha1 β†’

Varbase update type

  • βœ… No Update
  • βž– Optional Update
  • βž– Forced Update
  • βž– Forced Update if Unchanged

User interface changes

  • N/A

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • Issue #3321536 β†’ : Changed Varbase Video Player behavior on clicking on videos with cover images. Supporting Drimage changes for locally hosted and remote videos
πŸ“Œ Task
Status

Fixed

Version

10.0

Component

Code

Created by

πŸ‡―πŸ‡΄Jordan Rajab Natshah Jordan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024