| 162 | } |
| 163 | |
| 164 | void VideoPlayerScrubTestApp::keyDown( KeyEvent event ) |
| 165 | { |
| 166 | if( event.getCode() == KeyEvent::KEY_o ) { |
| 167 | fs::path moviePath = getOpenFilePath(); |
| 168 | if( ! moviePath.empty() ) |
| 169 | loadMovieFile( moviePath ); |
| 170 | } |
| 171 | else if( event.getCode() == KeyEvent::KEY_p ) { |
| 172 | if( mMovie ) mMovie->stop(); |
| 173 | } |
| 174 | else if( event.getCode() == KeyEvent::KEY_l ) { |
| 175 | if( mMovie ) mMovie->play(); |
| 176 | } |
| 177 | } |
| 178 | |
| 179 | void VideoPlayerScrubTestApp::loadMovieFile( const fs::path &moviePath ) |
| 180 | { |
nothing calls this directly
no test coverage detected