Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import * as React from "react";
import * as PropTypes from "prop-types";
import { findDOMNode } from "react-dom";
import * as RPlayer from "react-player";
import Control from "./Control";
const ReactPlayer = RPlayer.default as any;
export interface DataProps {
/**
* Set MediaPlayer display mode.
*/
displayMode?: "default" | "minimum" | "reset";
/**
* Control show the MediaPlayer controls.
*/
showControl?: boolean;
/**
* The url of a video or song to play.
*/
url?: string;
/**
* Sets the width of the player.