peertube-theme-nctv-dark/peertube-plugin-video-annotation/client/video-watch-client-plugin.js

13 lines
265 B
JavaScript
Raw Normal View History

2020-08-21 12:46:25 +00:00
const shared = require('./shared-player')
function register ({ registerHook }) {
registerHook({
target: 'action:video-watch.player.loaded',
handler: ({ player, videojs, video }) => shared.buildPlayer(video, player, videojs)
})
}
export {
register
}