Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@squiz/xaccel-assisted-video-player

Package Overview
Dependencies
Maintainers
0
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@squiz/xaccel-assisted-video-player

React component that wraps YouTube and Vimeo players

  • 1.15.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
179
increased by297.78%
Maintainers
0
Weekly downloads
 
Created
Source

Assisted Video Player

Description

This component will use native players from YouTube and Vimeo. DAM source is not supported at this point. The component will use the native players' accessibility standards and will not be Plug&Play team's responsibility to enhance it.

Components properties

PropertyProperty descriptionProperty typeIs required
sourceVideo Sourcestring[x]
teaserImgTeaser Image URLstring
alternativeVersionsAlternative Versionsstring
classNameOverwrite ClassNameclassNameOverride

Conditional component presentation

  • Displaying only iFrame: To display only iframe please leave teaserImg empty string or do not provide this prop.
  • Displaying Teaser Image: To display Teaser Image please provide a live URL to image that should be displayed as teaserImg prop. This option will not render iframe until clicking on image or SVG icon.

Props Example:

<AssistedVideoPlayer
  source="https://www.youtube.com/watch?v=GOIiwJ3axVk"
  teaserImg="https://source.unsplash.com/75xPHEQBmvA/640x360/"
  alternativeVersions="Alternative versions of video: check the video <a href='https://pnp.matrix.squiz.cloud' target='_blank'>transcript</a> or watch version with <a href='https://pnp.matrix.squiz.cloud' target='_blank'>audiodescription</a>"
  className={{
    className: "assisted-video-player",
    cssModule: { 'assisted-video-player__icon': 'dark' },
    replaceBaseClass: false,
  }}
/>

For more information about className please visit packages/utility/functions/src/generateClasses.js

Usage

Install the package by running: npm i @squiz/xaccel-assisted-video-player

import AssistedVideoPlayer from '@squiz/xaccel-assisted-video-player';

<AssistedVideoPlayer source teaserImg alternativeVersions className />

FAQs

Package last updated on 26 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc