Skip to content

Commit 00a296a

Browse files
authored
jsdoc fix + verbose logger (Dash-Industry-Forum#4980)
* make track filtering more verbose * add missing methods to JSDoc
1 parent 27c0dee commit 00a296a

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

src/streaming/MediaPlayer.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1874,13 +1874,17 @@ function MediaPlayer() {
18741874
/**
18751875
* Registers a custom initial track selection function. Only one function is allowed. Calling this method will overwrite a potentially existing function.
18761876
* @param {function} customFunc - the custom function that returns the initial track
1877+
* @memberof module:MediaPlayer
1878+
* @instance
18771879
*/
18781880
function setCustomInitialTrackSelectionFunction(customFunc) {
18791881
customParametersModel.setCustomInitialTrackSelectionFunction(customFunc);
18801882
}
18811883

18821884
/**
18831885
* Resets the custom initial track selection
1886+
* @memberof module:MediaPlayer
1887+
* @instance
18841888
*/
18851889
function resetCustomInitialTrackSelectionFunction() {
18861890
customParametersModel.resetCustomInitialTrackSelectionFunction(null);

src/streaming/controllers/MediaController.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,7 @@ function MediaController() {
419419
}
420420
});
421421
if (tracksAfterMatcher.length !== 0) {
422+
logger.info('Filter-Function (' + filterFn.name + ') resulted in ' + tracksAfterMatcher.length + ' tracks');
422423
return tracksAfterMatcher;
423424
}
424425

0 commit comments

Comments
 (0)