Encerrado

C++ Mac Flash Player

We need a way to integrate Shockwave Flash with the rest of our C++ framework on the Mac.

We need some code to open a SWF file and start "playing" it. We need the output (that is, what needs to be drawn on the screen) in an off-screen RGB(A) buffer, and the audio output either directly to the sound system or as another uncompressed audio buffer.

## Deliverables

We need a way to integrate Shockwave Flash with the rest of our C++ framework on the Mac.

We need some code to open a SWF file and start "playing" it. We need the output (that is, what needs to be drawn on the screen) in an off-screen RGB(A) buffer, and the audio output either directly to the sound system or as another uncompressed audio buffer.

We need this to be realtime, although we don't need or want to decode every frame (the client will request a frame from the player whenever it wants)

I'm thinking of an API similar to this one (simplified, of course - please discuss your API design with us before implementing it) :

class FlashPlayer

{

// Start "playback"

void open (const char* sPath)

// Make time advance - this controls the passage of movie time

void onUpdate (float fTime)

// Get the image that should be displayed now as a raw RGB(A) buffer

byte* getCurrentFrame (void)

// Controls

bool isPlaying (void)

void stop (void)

void play (void)

void rewind (void)

// Labels

int getFrame (void)

void gotoFrame (int nFrame)

int getFrameCount (void)

bool gotoLabel (const char* sLabel)

String getLabel (void)

Point getSize (void)

};

All code must be C or C++. Your code may use system libraries (ie installed by default) and/or open source libraries with at least a LGPL license (no GPL), but no commercial libraries.

As part of the deliverable, we want a simple SDL application demonstrating the player class' funcionality. That is, it should accept the path of a SWF from the command line and play it on the screen, using the class to do it.

We will provide a sample SWF that should play perfectly with this component to make sure everything works as expected.

Habilidades: Programação C, Engenharia, Linux, Mac OS, MySQL, PHP, Arquitetura de software, Teste de Software, UNIX

Ver mais: what is a string in programming, what is a programming framework, string in c programming, string c programming, rest client open source, rest api design, programming simplified, programming on mac, programming on a mac, programming libraries, programming in flash, need a flash player, mac programming, get string c, float programming, float c programming, flash player screen, c string programming, c programming string, c programming on mac, c programming mac, c programming course, c programming class, c programming char, component framework

Acerca do Empregador:
( 2 comentários ) Uruguay

ID do Projeto: #3001695