videoFiles: VideoFile[],
enableHotkeys: boolean,
inactivityTimeout: number,
- peertubeLink: boolean
+ peertubeLink: boolean,
+ poster: string,
+ startTime: number
}) {
const videojsOptions = {
controls: true,
- autoplay: options.autoplay,
+ poster: options.poster,
+ autoplay: false,
inactivityTimeout: options.inactivityTimeout,
playbackRates: [ 0.5, 1, 1.5, 2 ],
plugins: {
peertube: {
+ autoplay: options.autoplay, // Use peertube plugin autoplay because we get the file by webtorrent
videoFiles: options.videoFiles,
playerElement: options.playerElement,
videoViewUrl: options.videoViewUrl,
- videoDuration: options.videoDuration
+ videoDuration: options.videoDuration,
+ startTime: options.startTime
}
},
controlBar: {