Convert to HTML5 video player (temp)
This commit is contained in:
parent
7c7e3a97e8
commit
056470b47c
1 changed files with 2 additions and 3 deletions
|
@ -29,7 +29,7 @@ var WatchPage = React.createClass({
|
||||||
// TODO: Would be nice to check if we have the MOOV before starting playing
|
// TODO: Would be nice to check if we have the MOOV before starting playing
|
||||||
if (status) {
|
if (status) {
|
||||||
this.setState({
|
this.setState({
|
||||||
loadStatusMessage: status.message
|
loadStatusMessage: status.message,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
setTimeout(() => { this.updateLoadStatus() }, 250);
|
setTimeout(() => { this.updateLoadStatus() }, 250);
|
||||||
|
@ -57,8 +57,7 @@ var WatchPage = React.createClass({
|
||||||
!this.state.readyToPlay
|
!this.state.readyToPlay
|
||||||
? <LoadScreen message={'Loading video...'} details={this.state.loadStatusMessage} />
|
? <LoadScreen message={'Loading video...'} details={this.state.loadStatusMessage} />
|
||||||
: <main className="full-screen">
|
: <main className="full-screen">
|
||||||
<video controls width="100%" height="100%" id="video" ref="video">
|
<video width="100%" height="100%" id="video" ref="video" src={'/view?name=' + this.props.name} />
|
||||||
</video>
|
|
||||||
</main>
|
</main>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue