mirror of
https://github.com/videojs/video.js.git
synced 2025-01-04 06:48:49 +02:00
fix: do a null check on playbackRates player method (#7273)
This commit is contained in:
parent
28978edab9
commit
688879858c
@ -144,7 +144,9 @@ class PlaybackRateMenuButton extends MenuButton {
|
||||
* All possible playback rates
|
||||
*/
|
||||
playbackRates() {
|
||||
return this.player().playbackRates() || [];
|
||||
const player = this.player();
|
||||
|
||||
return (player.playbackRates && player.playbackRates()) || [];
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user