import React from "react" import { Button, Dropdown, MenuItem, Modal } from "react-bootstrap" export default class DownloadButton extends React.PureComponent { constructor(props) { super(props); this.showModal = this.showModal.bind(this); this.hideModal = this.hideModal.bind(this); this.state = { showModal: false }; } showModal() { this.setState({ showModal: true }); } hideModal() { this.setState({ showModal: false }); } render() { if (this.props.url === "") { return null; } let btnSize = "btn-sm"; if (this.props.xs) { btnSize = "btn-xs"; } const infuse = `infuse://x-callback-url/play?url=${this.props.url}`; return ( Stream with infuse Stream in browser  Browser streaming ); } } class Player extends React.PureComponent { constructor(props) { super(props); } render() { const subtitles = this.props.subtitles; const hasSubtitles = !(subtitles === undefined || subtitles === null || subtitles.size === 0); return (
); } }