You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When player.reset() is called and a custom initial track selection is applied , it does not seem possible to re-initialise the player and attach the source.
Uncaught TypeError: Cannot read properties of null (reading 'setCustomInitialTrackSelectionFunction')
at Object.setCustomInitialTrackSelectionFunction (MediaPlayer.js:1584:31)
at HTMLButtonElement.<anonymous> (reset-test.html:27:12)
This also affects the capabilities filter and license request filters functions being applied after player.reset() is called.
This seems to be because customParametersModel is set to null in the reset() function, but it is never then re-initialised since this is only called in the MediaPlayer setup() function
Below is a Quick demo showing setCustomInitialTrackSelectionFunction working when reset() is not applied beforehand but throws the error when reset is called beforehand.
When player.reset() is called and a custom initial track selection is applied , it does not seem possible to re-initialise the player and attach the source.
This also affects the capabilities filter and license request filters functions being applied after player.reset() is called.
This seems to be because
customParametersModel
is set to null in the reset() function, but it is never then re-initialised since this is only called in the MediaPlayer setup() functiondash.js/src/streaming/MediaPlayer.js
Line 185 in 2aad3e7
Below is a Quick demo showing setCustomInitialTrackSelectionFunction working when reset() is not applied beforehand but throws the error when reset is called beforehand.
The text was updated successfully, but these errors were encountered: