Skip to content

Commit

Permalink
Merge pull request #318 from samvera-labs/mobile-captions
Browse files Browse the repository at this point in the history
Only add captions button to VideoJS when the IIIF Manifest has tracks
  • Loading branch information
Dananji authored Dec 15, 2023
2 parents a4773a5 + 733a61a commit 2942572
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/MediaPlayer/MediaPlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ const MediaPlayer = ({ enableFileDownload = false, enablePIP = false }) => {
'videoJSCurrentTime',
'timeDivider',
'durationDisplay',
'subsCapsButton',
playerConfig.tracks.length > 0 ? 'subsCapsButton' : '',
'volumePanel',
'qualitySelector',
enablePIP ? 'pictureInPictureToggle' : '',
Expand Down

0 comments on commit 2942572

Please sign in to comment.