Media
import * as React from "react";
import { Video } from "spaceweb/video";
export default () => {
return (
<Video
height={200}
width={400}
src="http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"
poster="https://s3.amazonaws.com/cdn-origin-etr.akc.org/wp-content/uploads/2018/01/12201051/cute-puppy-body-image.jpg"
/>
);
}
Media renders content like image & video.
Examples
Videos with different fit properties
containfill
You can check the implementation of the component for more details.
Video exports
You can import this module like so:
import {Video} from 'spaceweb/video'
It exports the following components or utility functions: