I want a sprite that plays a video,
is that even possible ?
I could not find any reference on it.
Any ideas ?
Thanks,
Shachar Weis.
Video texture, is it possible ?
(9 posts) (5 voices)-
Posted 2 years ago #
-
The 1st of April was 5 months ago. You're late...
You'd better look into the MediaPlayer framework and not the cocos API.
Posted 2 years ago # -
It is POSSIBLE that one could do this, however, I think you'd have to decode the video yourself and render it to a texture rather than using the MediaPlayer framework. This would take a lot of time and effort to develop, and you'd probably have to pay expensive licensing fees to use any common video format. Plus, I'm not sure the iPhone is fast enough to play video and do much of anything else at the same time. And even worse, I wouldn't be surprised if Apple denied an app because it used non-standard video playback.
So theoretically yes, but practically... probably not.
Posted 2 years ago # -
actually,
what I want to do is allow the user to capture a short video with
the iphone camera, and then use that short video as a sprite in the game.
Is it possible to break the video into a series of PNGs and animate that ?
Thanks !Posted 2 years ago # -
Remember, the video is compressed with all kinds of intra-frame compression which you would lose as a string of PNGs. You would use up a crazy amount of memory for even the smallest video.
Posted 2 years ago # -
I know, but it will be a short video (3 sec max) and small (under 100x100 pixels)
and I dont need 30fps, 15 would do.
Two questions,1.
I am trynig to use UIImagePickerController to capture a movie but availableMediaTypesForSourceType returns that only images are supported.
I'm running on a 3G iphone with 3.0.1, I thought Movie is also supported ?2.
If I manage to pull this off, do you think Apple will reject it ?Thanks !
Posted 2 years ago # -
I don't believe video capture is supported on the 3G - only the 3GS. I think it's been done in the jailbreak scene using undocumented APIs, but Apple would most definitely reject the use of the those.
Posted 2 years ago # -
Yeah, only the 3GS supports video without jailbreaking.
Posted 2 years ago # -
Gotcha, 3G = No Video
Bummer.
Back to image capture then.
Thanks to everyone !Posted 2 years ago #
Reply
You must log in to post.