diff options
author | Chocobozzz <me@florianbigard.com> | 2018-04-05 17:06:59 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-04-05 17:12:22 +0200 |
commit | f37bad639b36d35c29a464dc52123a1e7c9cd28a (patch) | |
tree | 376ff9d09b091610cb943ee5fd4eebc7a17e4c22 /client/src/assets/player/peertube-player.ts | |
parent | 7ee4a4af0b01040e3896453ee68b3d429dc45cd4 (diff) | |
download | PeerTube-f37bad639b36d35c29a464dc52123a1e7c9cd28a.tar.gz PeerTube-f37bad639b36d35c29a464dc52123a1e7c9cd28a.tar.zst PeerTube-f37bad639b36d35c29a464dc52123a1e7c9cd28a.zip |
Add ability to set a start time
Diffstat (limited to 'client/src/assets/player/peertube-player.ts')
-rw-r--r-- | client/src/assets/player/peertube-player.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/client/src/assets/player/peertube-player.ts b/client/src/assets/player/peertube-player.ts index 58a8aa26c..e8a258065 100644 --- a/client/src/assets/player/peertube-player.ts +++ b/client/src/assets/player/peertube-player.ts | |||
@@ -21,7 +21,8 @@ function getVideojsOptions (options: { | |||
21 | enableHotkeys: boolean, | 21 | enableHotkeys: boolean, |
22 | inactivityTimeout: number, | 22 | inactivityTimeout: number, |
23 | peertubeLink: boolean, | 23 | peertubeLink: boolean, |
24 | poster: string | 24 | poster: string, |
25 | startTime: number | ||
25 | }) { | 26 | }) { |
26 | const videojsOptions = { | 27 | const videojsOptions = { |
27 | controls: true, | 28 | controls: true, |
@@ -34,7 +35,8 @@ function getVideojsOptions (options: { | |||
34 | videoFiles: options.videoFiles, | 35 | videoFiles: options.videoFiles, |
35 | playerElement: options.playerElement, | 36 | playerElement: options.playerElement, |
36 | videoViewUrl: options.videoViewUrl, | 37 | videoViewUrl: options.videoViewUrl, |
37 | videoDuration: options.videoDuration | 38 | videoDuration: options.videoDuration, |
39 | startTime: options.startTime | ||
38 | } | 40 | } |
39 | }, | 41 | }, |
40 | controlBar: { | 42 | controlBar: { |