cocos2d-iphone-extensions  0.2
Cocos2D Extensions API Reference (iOS version) for Kobold2D developers
CCVideoPlayer Class Reference

List of all members.

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)

Detailed Description

Video Player for Cocos2D apps.


Member Function Documentation

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.


The documentation for this class was generated from the following file: