Mikael Finstad 10 years ago
parent 41d6991c11
commit ca858f707c

@ -224,6 +224,10 @@ class App extends React.Component {
});
}
getFileUri() {
return (this.state.filePath || '').replace(/#/g, '%23');
}
render() {
return (<div>
{this.state.filePath ? undefined : <div id="drag-drop-field">DROP VIDEO</div>}
@ -232,7 +236,7 @@ class App extends React.Component {
<div id="player">
<video
src={this.state.filePath}
src={this.getFileUri()}
onRateChange={() => this.playbackRateChange()}
onPlay={() => this.onPlay(true)}
onPause={() => this.onPlay(false)}

Loading…
Cancel
Save