@@ -30,9 +30,15 @@ export class DuckPlayerNativePage {
3030 environment ;
3131 /** @type {DuckPlayerNativeMessages } */
3232 messages ;
33- /** @type {CustomEventHandler } */
33+ /**
34+ * Runs when an instance of this class is initialized
35+ * @type {CustomEventHandler }
36+ */
3437 onInit ;
35- /** @type {CustomEventHandler } */
38+ /**
39+ * Runs after the current document has been loaded
40+ * @type {CustomEventHandler }
41+ */
3642 onLoad ;
3743
3844 /**
@@ -98,6 +104,8 @@ export class DuckPlayerNativePage {
98104}
99105
100106/**
107+ * Sets up Duck Player for a YouTube watch page
108+ *
101109 * @param {DuckPlayerNativeSelectors } selectors
102110 * @param {boolean } playbackPaused
103111 * @param {Environment } environment
@@ -173,6 +181,8 @@ export function setupDuckPlayerForYouTube(selectors, playbackPaused, environment
173181}
174182
175183/**
184+ * Sets up Duck Player for a video player in the YouTube nocookie domain
185+ *
176186 * @param {DuckPlayerNativeSelectors } selectors
177187 * @param {Environment } environment
178188 * @param {DuckPlayerNativeMessages } messages
@@ -235,6 +245,8 @@ export function setupDuckPlayerForNoCookie(selectors, environment, messages) {
235245}
236246
237247/**
248+ * Sets up Duck Player events for the SERP
249+ *
238250 * @param {DuckPlayerNativeSelectors } selectors
239251 * @param {Environment } environment
240252 * @param {DuckPlayerNativeMessages } messages
0 commit comments