0.7.3 • Published 1 month ago
@castlabs/prestoplay-react-components v0.7.3
PRESTOplay React Components
This is a React Component library that provides components to interact with the PRESTOplay video player and build video player user interfaces and controls.
Installation
The library can be installed from NPM:
npm install @castlabs/prestoplay-react-components
Install peer dependencies:
npm i react@18 react-dom@18 @castlabs/prestoplay@6.2
Media Tailor integration
Use this example to render the player for the AWS Media Tailor demo.
import React from "react";
import { MediaTailorPlayer } from '@castlabs/prestoplay-react-components'
import poster from '../assets/poster.png' // Create this asset first
import "@castlabs/prestoplay/clpp.styles.css"
import "@castlabs/prestoplay-react-components/dist/themes/pp-ui-base-theme-embedded.css"
export const App = () => {
return (
<MediaTailorPlayer
poster={poster}
config={{ license: "..." }} // Generated by someone at castLabs
mediaTailorAsset={{ sessionUri: "..." }} // MediaTailor session URI
/>
)
}
0.8.0-beta.3
1 month ago
0.8.0-beta.1
1 month ago
0.8.0-beta.2
1 month ago
0.7.3
5 months ago
0.7.2
5 months ago
0.7.1
5 months ago
0.0.3-beta.1
6 months ago
0.7.0
6 months ago
0.0.1-beta.1
6 months ago
0.6.0-beta.13
1 year ago
0.6.0-beta.12
1 year ago
0.6.0-beta.11
1 year ago
0.6.0-beta.10
1 year ago
0.6.0-beta.8
1 year ago
0.6.0-beta.7
1 year ago
0.6.0-beta.9
1 year ago
0.6.0-beta.4
1 year ago
0.6.0-beta.3
1 year ago
0.6.0-beta.6
1 year ago
0.6.0-beta.5
1 year ago
0.6.0-beta.2
1 year ago
0.6.0-beta.1
1 year ago
0.6.0
1 year ago
0.5.0
2 years ago