diff --git a/src/components/VideoPlayer2.tsx b/src/components/VideoPlayer2.tsx index 431001354..02c042bbc 100644 --- a/src/components/VideoPlayer2.tsx +++ b/src/components/VideoPlayer2.tsx @@ -176,6 +176,15 @@ export const VideoPlayer: FunctionComponent = ({ player.currentTime(player.currentTime() + (10 * player.playbackRate())); event.stopPropagation(); break; + case 'KeyC': + if (subtitles && player.textTracks().length) { + if (player.textTracks()[0].mode === 'showing') { + player.textTracks()[0].mode = 'hidden'; + } else { + player.textTracks()[0].mode = 'showing'; + } + } + break; } } };