checks movie's current loadstate and updates mLoaded and mPlayable accordingly
| 226 | |
| 227 | // checks movie's current loadstate and updates mLoaded and mPlayable accordingly |
| 228 | void MovieBase::updateLoadState() |
| 229 | { |
| 230 | ::MoviesTask( getObj()->mMovie, 0 ); |
| 231 | long state; |
| 232 | state = ::GetMovieLoadState( getObj()->mMovie ); |
| 233 | if( state == kMovieLoadStateError ) |
| 234 | throw QuickTimeErrorLoadingExc(); |
| 235 | if( ( ! getObj()->mLoaded ) && ( state >= kMovieLoadStateLoaded ) ) { |
| 236 | getObj()->mLoaded = true; |
| 237 | } |
| 238 | if( state >= kMovieLoadStatePlaythroughOK ) { |
| 239 | getObj()->mPlayable = true; |
| 240 | } |
| 241 | } |
| 242 | |
| 243 | //! \return The movie has loaded and buffered enough to playback without interruption |
| 244 | bool MovieBase::checkPlayable() |
nothing calls this directly
no test coverage detected