[libavg-devel] External Application for Playback

Michael Baker michael.baker at lastbyte.com.au
Fri Jan 11 03:43:53 CET 2008


Hi Guys,

I am looking to write a application to interface with libAVG rather than 
using Python. I have the application compiling fine and rendering text I 
was wondering if I could get the steps Video Playback should be called.

This is the code I am trying for the video Playback as present.
// Snippet
              DisplayEngine * m_pDisplayEngine = new 
avg::SDLDisplayEngine ();
              avg::Player libAVGI;
               Video v(rootdata,&libAVGI);
                DRect renderplayback = v.getAbsViewport();
                v.setDisplayEngine(m_pDisplayEngine);
                v.prepareRender(time(NULL),renderplayback);
                v.render(renderplayback);
                v.play();
// End Snippet

It compiles fine but there is no Video rendered to the screen any ideas?



More information about the libavg-devel mailing list