1.7.0 • Published 2 years ago
@crystallize/react-video v1.7.0
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
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
2 years ago
1.6.8
2 years ago
1.6.7
2 years ago
1.6.4
3 years ago
1.6.6
3 years ago
1.6.5
3 years ago
1.6.3
3 years ago
1.6.2
3 years ago
1.6.1
3 years ago
1.6.0
3 years ago
1.5.0
3 years ago
1.4.1
3 years ago
1.4.0
3 years ago
1.3.0
3 years ago
1.2.3
3 years ago
1.2.2
3 years ago
1.2.1
3 years ago
1.2.0
3 years ago
1.1.3
3 years ago
1.1.2
3 years ago
1.1.1
3 years ago
1.1.0
3 years ago
1.0.0
3 years ago