summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-09-09 16:12:03 +0200
committerJules Laplace <julescarbon@gmail.com>2020-09-09 16:12:03 +0200
commit9091ab927d2b618edb70ea4cc7b2f7978eaea103 (patch)
tree43bd90f34753cfab61c37430ce4f79dcaeaa038a
parentc426b1e9b9a50203db6dececcbbb0926ddc7947a (diff)
events
-rw-r--r--animism-align/frontend/app/views/viewer/player/components.fullscreen/fullscreen.video.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/animism-align/frontend/app/views/viewer/player/components.fullscreen/fullscreen.video.js b/animism-align/frontend/app/views/viewer/player/components.fullscreen/fullscreen.video.js
index efc8f89..2c9f7d6 100644
--- a/animism-align/frontend/app/views/viewer/player/components.fullscreen/fullscreen.video.js
+++ b/animism-align/frontend/app/views/viewer/player/components.fullscreen/fullscreen.video.js
@@ -2,6 +2,25 @@ import React, { Component } from 'react'
import VimeoPlayer from 'app/utils/vendor/vimeo'
export class FullscreenVideo extends Component {
+ constructor(props) {
+ super(props)
+ this.handlePlay = this.handlePlay.bind(this)
+ this.handlePause = this.handlePause.bind(this)
+ this.handleTimeUpdate = this.handleTimeUpdate.bind(this)
+ this.handleEnd = this.handleEnd.bind(this)
+ }
+ handlePlay() {
+
+ }
+ handlePause() {
+
+ }
+ handleEnd() {
+
+ }
+ handleTimeUpdate() {
+
+ }
render() {
const { element, media, transitionDuration } = this.props
const { color } = element
@@ -24,6 +43,10 @@ export class FullscreenVideo extends Component {
responsive={true}
controls={false}
byline={false}
+ onPlay={this.handlePlay}
+ onPause={this.handlePause}
+ onTimeUpdate={this.handleTimeUpdate}
+ onEnd={this.handleEnd}
/>
</div>
)