1.7.0 • Published 3 years ago

@crystallize/react-video v1.7.0

Weekly downloads
248
License
MIT
Repository
github
Last release
3 years ago

alt text

React Video for Crystallize

A React package to output videos from Crystallize using the native video element. Use this to easily embed videos powered by the Crystallize headless commerce service.

Demo

Demo

Install

yarn add @crystallize/react-video

Use

import { Video } from '@crystallize/react-video';
import '@crystallize/react-video/dist/styles.css';

const videoFromCrystallize = {
    playlists: [...],
    thumbnails: [...]
}

<Video
    {...videoFromCrystallize}
    thumbnmailProps={{ sizes: "(max-width: 700px) 90vw, 700px" }}
/>

Supported props

export interface Props extends HTMLAttributes<HTMLDivElement> {
  playlists: string[];
  thumbnails?: CrystallizeImageVariant[];
  thumbnailProps?: object;
  videoProps?: HTMLAttributes<HTMLVideoElement>;
  autoPlay?: boolean;
  loop?: boolean;
  muted?: boolean;
  controls?: boolean;
  poster?: string;
  playButtonText?: string;
}
1.7.0

3 years ago

1.6.8

3 years ago

1.6.7

3 years ago

1.6.4

4 years ago

1.6.6

4 years ago

1.6.5

4 years ago

1.6.3

4 years ago

1.6.2

4 years ago

1.6.1

4 years ago

1.6.0

4 years ago

1.5.0

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago