diff --git a/peertube-plugin-hello-world/client/video-watch-client-plugin.js b/peertube-plugin-hello-world/client/video-watch-client-plugin.js index d9a2988..ebda8f7 100644 --- a/peertube-plugin-hello-world/client/video-watch-client-plugin.js +++ b/peertube-plugin-hello-world/client/video-watch-client-plugin.js @@ -132,6 +132,15 @@ function register ({ registerHook, peertubeHelpers }) { // --------------------------------------------------------------------------- + registerHook({ + target: 'action:video-watch.player.loaded', + handler: ({ videojs }) => { + console.log(videojs.VERSION) + } + }) + + // --------------------------------------------------------------------------- + peertubeHelpers.notifier.info('you are on the watch page', 'useless', 1000) } diff --git a/peertube-plugin-hello-world/package-lock.json b/peertube-plugin-hello-world/package-lock.json index b6754a7..3a9c8a9 100644 --- a/peertube-plugin-hello-world/package-lock.json +++ b/peertube-plugin-hello-world/package-lock.json @@ -1,6 +1,6 @@ { "name": "peertube-plugin-hello-world", - "version": "0.0.20", + "version": "0.0.21-beta.1", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/peertube-plugin-hello-world/package.json b/peertube-plugin-hello-world/package.json index b35f000..ca153ed 100644 --- a/peertube-plugin-hello-world/package.json +++ b/peertube-plugin-hello-world/package.json @@ -1,6 +1,6 @@ { "name": "peertube-plugin-hello-world", - "version": "0.0.20", + "version": "0.0.21-beta.1", "description": "Hello world PeerTube plugin example", "engine": { "peertube": ">=3.2.0"