[libavg-devel] External Application for Playback
Ulrich von Zadow
uzadow at libavg.de
Sat Jan 12 08:44:59 CET 2008
Michael Baker wrote:
> 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?
Dunno (the snippet doesn't give enough info), but have a look at
Player::play and Player::doFrame to see what's involved in rendering.
Cheers,
Uli
--
Ulrich von Zadow | +49-172-7872715
Jabber: cocacoder at jabber.berlin.ccc.de
Skype: uzadow
More information about the libavg-devel
mailing list