cocos2d-iphone-extensions
0.2
Cocos2D Extensions API Reference (iOS version) for Kobold2D developers
|
Static Public Member Functions | |
void | setDelegate: (id< CCVideoPlayerDelegate > aDelegate) |
void | setNoSkip: (BOOL value) |
void | playMovieWithFile: (NSString *file) |
void | cancelPlaying () |
void | userCancelPlaying () |
BOOL | isPlaying () |
void | updateOrientationWithOrientation: (UIDeviceOrientation newOrientation) |
Video Player for Cocos2D apps.
void CCVideoPlayer::cancelPlaying | ( | ) | [static, virtual] |
Stop playing video if it's playing.
BOOL CCVideoPlayer::isPlaying | ( | ) | [static, virtual] |
Returns YES if video is currently playing. Otherwise returns NO.
void CCVideoPlayer::playMovieWithFile: | ( | NSString * | file | ) | [static, virtual] |
Start playing movie with given filename
void CCVideoPlayer::setDelegate: | ( | id< CCVideoPlayerDelegate > | aDelegate | ) | [static, virtual] |
Sets new delegate (weak ref) for playback start/stop callbacs.
ATTENTION: You need to call this method before invoking playMovieWithFile: or you will not receive movieStartsPlaying callback.
void CCVideoPlayer::setNoSkip: | ( | BOOL | value | ) | [static, virtual] |
If YES - user can't skip video by mouse/key/touch event. Default is NO.
void CCVideoPlayer::updateOrientationWithOrientation: | ( | UIDeviceOrientation | newOrientation | ) | [static, virtual] |
Updates video player view transform for newOrientation.
Supports only landscape left or landscape right, for other orientations does nothing.
void CCVideoPlayer::userCancelPlaying | ( | ) | [static, virtual] |
Stop playing video if it's playing and noSkip is NO.