Theora Looping Problem

Blader

22-11-2010 09:24:02

Hi all! First off thanks for the great plugin!

Unfortunately I am having trouble getting the plugin to loop a video. Here is some code, explanation follows:

Init Code


mVideoManager = (Ogre::OgreVideoManager *) Ogre::OgreVideoManager::GetSingletonPtr();
mVideoManager->setInputName("Video.ogv");
mVideoManager->createDefinedTexture("VideoMaterial");
mClip = mVideoManager->getVideoClipByName("Video.ogv");
mClip->Play();
mClip->SetAutoRestart(true);


VideoMaterial


material VideoMaterial
{
technique
{
pass
{
texture_unit
{
}
}
}
}


So what happens is the video will only play 616 frames (from mNumDisplayedFrames) before 'freezing' and never playing again. The video has 100 frames (So it plays a few times through and stops midway).

I have tried manually stopping and playing which doesn't work, it stops and never plays again.

If I also try and restart after using the isDone function it works until it hits 800 frames displayed. I have tried RC1 and RC2. I am using Ogre 1.8.0 (Byatis).

Kreso

22-11-2010 09:28:29

Not sure what the cause is. The last I tried this plugin was on Ogre 1.6.5. You can submit a bug in the tracker and I'll investigate as soon as I find some time (not too soon)