@@ -5,6 +5,18 @@ import Select from './Select';
55
66import style from './PlayerControls.module.css' ;
77
8+ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' ;
9+
10+ import {
11+ faSave ,
12+ faTv ,
13+ faPlay ,
14+ faPause ,
15+ faBackward ,
16+ faForward ,
17+ faUndo
18+ } from '@fortawesome/free-solid-svg-icons' ;
19+
820class PlayerControls extends React . Component {
921 // to handle backward and forward mouse pressed on btn
1022 // set a 300 ms interval to repeat the
@@ -34,28 +46,28 @@ class PlayerControls extends React.Component {
3446 < button
3547 className = { style . playerButton }
3648 onClick = { this . props . rollback } >
37- { '↺' }
49+ < FontAwesomeIcon icon = { faUndo } />
3850 </ button >
3951
4052 < button
4153 className = { style . playerButton }
4254 onMouseDown = { this . setIntervalHelperBackward }
4355 onMouseUp = { this . clearIntervalHelper } >
44- { '◀◀' }
56+ < FontAwesomeIcon icon = { faBackward } />
4557
4658 </ button >
4759
4860 < button
4961 className = { style . playerButton }
5062 onClick = { this . props . playMedia } >
51- { this . props . isPlaying ? '❚❚' : '▶' }
63+ { this . props . isPlaying ? < FontAwesomeIcon icon = { faPause } /> : < FontAwesomeIcon icon = { faPlay } /> }
5264 </ button >
5365
5466 < button
5567 className = { style . playerButton }
5668 onMouseDown = { this . setIntervalHelperForward }
5769 onMouseUp = { this . clearIntervalHelper } >
58- { '▶▶' }
70+ < FontAwesomeIcon icon = { faForward } />
5971 </ button >
6072
6173 < span className = { style . playBackRate } >
@@ -74,11 +86,17 @@ class PlayerControls extends React.Component {
7486 < span className = { style . duration } > { this . props . duration } </ span >
7587 </ div >
7688
89+ < button
90+ className = { style . playerButton }
91+ onClick = { this . props . handleSaveTranscript } >
92+ < FontAwesomeIcon icon = { faSave } />
93+ </ button >
94+
7795 < button
7896 className = { style . playerButton }
7997 onClick = { this . props . pictureInPicture }
8098 >
81- { '📺' }
99+ < FontAwesomeIcon icon = { faTv } />
82100 </ button >
83101
84102 < VolumeControl
0 commit comments