Skip to content
This repository has been archived by the owner on Mar 29, 2023. It is now read-only.

Commit

Permalink
Disable autoplay
Browse files Browse the repository at this point in the history
  • Loading branch information
maxammann committed Jun 29, 2020
1 parent c1edf8a commit 8ac6f9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class App extends React.Component<{}, StateType> {
loading: false,
participantsData: [],
error: null,
paused: false,
paused: true,
showDevSettings: true,
volume: 1
};
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/VideoFeed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class VideoFeed extends React.Component<PropsType> {
this.props.onSeeked(event.currentTarget.currentTime);

render() {
return <StyledVideo ref={this.videoRef} autoPlay onTimeUpdate={this.onTimeUpdate}
return <StyledVideo ref={this.videoRef} onTimeUpdate={this.onTimeUpdate}
onSeeked={this.onSeeked} onPlay={this.props.onPlay} onPause={this.props.onPause}>
<source src={this.props.videoURL} type="video/mp4"/>
Your browser does not support HTML video.
Expand Down

0 comments on commit 8ac6f9c

Please sign in to comment.