1
0
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:
Gary Katsevman 2021-06-14 14:58:53 -04:00 committed by GitHub
parent 28978edab9
commit 688879858c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()) || [];
}
/**