import React from 'react'; import ReactDOM from 'react-dom'; import SharedFileView from './components/shared-file-view/shared-file-view'; import SharedFileViewTip from './components/shared-file-view/shared-file-view-tip'; import VideoPlayer from './components/video-player'; import './css/video-file-view.css'; const { rawPath, err } = window.shared.pageOptions; class SharedFileViewImage extends React.Component { render() { return } />; } } class FileContent extends React.Component { render() { if (err) { return ; } const videoJsOptions = { autoplay: false, controls: true, preload: 'auto', sources: [{ src: rawPath }] }; return (
); } } ReactDOM.render( , document.getElementById('wrapper') );