diff --git a/src/js/plugins/ads.js b/src/js/plugins/ads.js index 515c4b97..486115fa 100644 --- a/src/js/plugins/ads.js +++ b/src/js/plugins/ads.js @@ -240,7 +240,7 @@ class Ads { /** * This method is called whenever the ads are ready inside the AdDisplayContainer - * @param {Event} adsManagerLoadedEvent + * @param {Event} event - adsManagerLoadedEvent */ onAdsManagerLoaded = (event) => { // Load could occur after a source change (race condition) @@ -581,6 +581,7 @@ class Ads { /** * Handles callbacks after an ad event was invoked * @param {String} event - Event type + * @param args */ trigger = (event, ...args) => { const handlers = this.events[event]; diff --git a/src/js/plyr.js b/src/js/plyr.js index d272383b..89162294 100644 --- a/src/js/plyr.js +++ b/src/js/plyr.js @@ -649,7 +649,7 @@ class Plyr { /** * Set playback speed - * @param {Number} speed - the speed of playback (0.5-2.0) + * @param {Number} input - the speed of playback (0.5-2.0) */ set speed(input) { let speed = null; @@ -953,7 +953,7 @@ class Plyr { /** * Set the caption track by index - * @param {Number} - Caption index + * @param {Number} input - Caption index */ set currentTrack(input) { captions.set.call(this, input, false); @@ -971,7 +971,7 @@ class Plyr { /** * Set the wanted language for captions * Since tracks can be added later it won't update the actual caption track until there is a matching track - * @param {String} - Two character ISO language code (e.g. EN, FR, PT, etc) + * @param {String} input - Two character ISO language code (e.g. EN, FR, PT, etc) */ set language(input) { captions.setLanguage.call(this, input, false);