1.15.0-beta.1 • Published 21 days ago

@squiz/xaccel-assisted-video-player v1.15.0-beta.1

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
21 days ago

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 Sourcestringx
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 />
1.14.0-alpha.1

21 days ago

1.15.0-beta.1

21 days ago

1.15.0-beta.0

2 months ago

1.13.0-beta.2

3 months ago

1.13.0-alpha.7

3 months ago

1.13.1

3 months ago

1.12.2

4 months ago

1.12.1

4 months ago

1.13.0-alpha.4

4 months ago

1.13.0-alpha.5

4 months ago

1.12.1-beta.1

4 months ago

1.12.1-beta.3

4 months ago

1.12.1-beta.2

4 months ago

1.13.0-beta.1

4 months ago

1.9.1-alpha.0

4 months ago

1.12.1-alpha.0

4 months ago

1.12.1-alpha.1

4 months ago

1.12.1-beta.0

4 months ago

1.9.1-beta.0

4 months ago

1.9.0

4 months ago

1.9.0-beta.38

4 months ago

1.9.0-beta.36

4 months ago

1.9.0-beta.32

4 months ago

1.11.0-alpha.15

5 months ago

1.9.0-beta.28

5 months ago

1.11.0-alpha.9

5 months ago

1.11.0-alpha.8

5 months ago

1.11.0-alpha.7

5 months ago

1.9.0-beta.24

6 months ago

1.10.0-alpha.15

6 months ago

1.10.0-alpha.13

6 months ago

1.10.0-alpha.12

6 months ago

1.10.0-alpha.11

6 months ago

1.10.0-alpha.9

7 months ago

1.9.0-beta.17

7 months ago

1.10.0-alpha.8

7 months ago

1.10.0-alpha.7

7 months ago

1.10.0-alpha.6

7 months ago

1.10.0-alpha.5

7 months ago

1.9.0-beta.13

7 months ago

1.9.0-beta.12

7 months ago

1.9.0-beta.11

7 months ago

1.10.0-alpha.3

7 months ago

1.10.0-alpha.2

7 months ago

1.9.0-beta.10

7 months ago

1.10.0-alpha.1

7 months ago

1.10.0-alpha.0

7 months ago

2.16.1-alpha.0

7 months ago

1.9.0-alpha.17

7 months ago

1.9.0-alpha.16

7 months ago

1.9.0-alpha.15

7 months ago

1.9.0-alpha.13

7 months ago

1.9.0-beta.8

7 months ago

1.9.0-alpha.9

7 months ago

1.9.0-alpha.8

7 months ago

1.9.0-beta.3

7 months ago

1.9.0-alpha.7

7 months ago

1.9.0-alpha.4

7 months ago

1.9.0-alpha.3

7 months ago

1.9.0-beta.2

7 months ago

1.9.0-beta.1

7 months ago

1.5.1-beta.4

7 months ago

1.6.0-alpha.5

7 months ago

1.6.0-alpha.4

7 months ago

1.5.0-alpha.3

7 months ago