@Glitch Games: Thanks for the suggestion! We’re actually using that technique in one location in the game already, but ultimately it would be a LOT of frames to do it for every video in the game, and it would be really difficult to sync with sound. At this point we’ll just have to wait until native.newVideo() is added or media.playVideo() is restored.
Ah yea, I hadn’t thought about sound, that wouldn’t be fun to manage. Luckily we only have one video in our games, right at the end, and we didn’t much like it anyway so we’ve just pulled it. Naturally that’s not much of a solution for you though
I think playing your movies in a webview is more likely to yield desirable results than some sort of flipbook animation. With the proviso that it currently only works on OS X.
Sample project attached.
Taking this as an opportunity to try and drum up support for my long-suffering feature request for video to texture (as in, play video in the open GL layer). This one feature could be the answer to so many issues, including this one. Help me Perry Wan Kenobi, you’re my only hope!
Jason feel free do drum up support for this. I know several people would like this. But consider, Corona doesn’t really manage it’s own codecs. We depend on existing layers like OpenAL for audio support or API calls from the OS to play sounds. In our video support we are leveraging the OS’s own view controllers to show video. Grabbing a camera feed is pretty straight forward (at least on iOS, quite difficult to do on Android), but Video adds a whole other level of problems.
What video formats do we support? .mov? .mp4? .wmf? .avi? .fla?
What encoding do we support? H.264? MPEG-1, MPEG-2? H.263? and of course the various Audio formats?
It’s a really complex feature.
Rob
All valid points, Rob. I am aware that I’m sitting in the enviable position of coming up with cool ideas and then not having to actually build them out.
However, should CL put the engineering muscle required into sorting out all those nasty details, I stand ready to issue my standard bribe of a box of cookies. Perry already has one coming his way once drag-n-drop file importing makes its way onto desktop builds in the next week or so. (https://forums.coronalabs.com/topic/59624-support-for-drag-file-onto-desktop-app-icon/)
@Perry Clarke: Thanks for the suggestion. I’ve been traveling as well as developing my next game, so I haven’t had a chance to test it, but I plan to. I appreciate your help.
Just to keep poking at this, I was encouraged to see that the tvOS alpha already supports native.newVideo(). That’s a step in the right direction.
As for Rob’s point on video codecs and formats, I think any support would be preferable to no support. For starters, mirroring what is supported on iOS seems to make sense, as it is already a quite limited subset of codecs/formats, and many people are trying to develop cross-platform games and apps.