Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
import React from 'react';
import { VideoTypes as VideoProps } from './typings';
interface VideoRef extends React.RefObject<HTMLVideoElement> {
    current: HTMLVideoElement;
    value?: HTMLVideoElement;
}
/**
 * @type { HTMLMediaElement }
 * @todo - merge with OneGallery/VideoPlayer - this one does not embedded url/youtube
 * https://www.youtube.com/watch?v=r21CMDyPuGo
 * @todo - allow borderless iframe inserting
 * @example <iframe data-reactid="26" frameborder="0" allowfullscreen="1" gesture="media" allow="encrypted-media" title="YouTube video player" width="100%" height="100%" src="https://www.youtube.com/embed/51SmzJzu-PI?autoplay=0&amp;playsinline=1&amp;showinfo=0&amp;rel=0&amp;iv_load_policy=3&amp;controls=0&amp;start=0&amp;origin=http%3A%2F%2Ftruthdubstep.audio&amp;enablejsapi=1&amp;widgetid=1" id="widget2"></iframe>
 */
declare class VideoPlayer extends React.PureComponent<VideoProps> {
    dom: VideoRef;
    static defaultProps: {
        autoPlay: boolean;
        muted: any;
        loop: boolean;
        controls: boolean;
        isPaused: any;
        src: string[];
        preload: string;
        className: string;
    };
    updateRef(): void;
    static getDerivedStateFromProps(nextProps: VideoProps): {
        isForcingPlayPause: boolean;
        isPlaying: boolean;
    };
    componentDidUpdate(): void;
    render(): JSX.Element;
}
export { VideoPlayer };
export default VideoPlayer;