cocos2d-iphone-extensions icon indicating copy to clipboard operation
cocos2d-iphone-extensions copied to clipboard

Request: enable the use of the standard MoviePlayer UI

Open mbinkhorst opened this issue 13 years ago • 3 comments

I would like my users to be able to use the normal video UI controls, so they pause, skip/rewind, drag the playhead and use the volume slider etc.

Currently I can only stop the video even if I enable the standard UI.

I can allow the use of the normal UI by not using the _videoOverlayView.

It would be nice if this too was possible to choose parametrically.

[CCVideoPlayer setSkippable: YES]; -> should use the videooverlayview and make the movie skippable

If Skippable is set to NO then you would be able to use this: [CCVideoPlayer setControlstyle: MPMovieControlStyleEmbedded]; -> this may be trickier because of the different syntax for earlier IOS versions, but could be solved by some #ifdefs

This way we have a choice between a really easy to use videoplayer and some more advanced options.

Unfortunately I'm just starting out with Cocoa/Cocos2d, so I don't have any code.

mbinkhorst avatar Aug 19 '11 20:08 mbinkhorst

Moved to 0.2, i think it will be something like [CCVideoPlayer setUIEnabled: YES], and it will enable all UI and disable overlayView.

If i remember right - there's also UI customization for Mac, so maybe it will be good to customize UI with some Mac/iOS Independent constants, CCVidePlayerControlStyleFull, CCVideoPlayerControlStyleVolume ,etc...

Thank you for creating an issue!

psineur avatar Aug 20 '11 06:08 psineur

Thank you for doing a project like this, helps me learn!

mbinkhorst avatar Aug 20 '11 08:08 mbinkhorst

You're welcome! ;)

20.08.11 12:49, mbinkhorst пишет:

Thank you for doing a project like this, helps me learn!

psineur avatar Aug 20 '11 08:08 psineur