| 133 | } |
| 134 | |
| 135 | void VideoPlayerScrubTestApp::update() |
| 136 | { |
| 137 | if( ! mSlider.isScrubbing() && mMovie && mMovie->isLoaded() ) { |
| 138 | mSlider.updateValue( mMovie->getCurrentTime() / mMovie->getDuration() ); |
| 139 | } |
| 140 | |
| 141 | if( mMovie ) { |
| 142 | mFrameTexture = mMovie->getTexture(); |
| 143 | } |
| 144 | |
| 145 | static bool sPrintedDone = false; |
| 146 | if( ! sPrintedDone && mMovie->isDone() ) { |
| 147 | CI_LOG_I( "Done Playing" ); |
| 148 | sPrintedDone = true; |
| 149 | } |
| 150 | } |
| 151 | |
| 152 | void VideoPlayerScrubTestApp::draw() |
| 153 | { |
nothing calls this directly
no test coverage detected