Rich Rattanni wrote:
> All:
> Here is my senario:
>
> loopSetting = DVPLAY_LOOPING;
> IDirectFBDataBuffer *vidBuf;
> dfb->CreateDataBuffer(dfb, NULL, &vidBuf);
> vidBuf->PutData(vidBuf, vidDataPtr, vidDataSize);
> vidBuf->CreateVideoProvider(vidBuf, &animationProvider);
> vidBuf->Release(vidBuf);
> animationProvider->SetPlaybackFlags(animationProvider, loopSetting);
>
> The following code will produce an animation provider, but it seems to
> ignore the looping flag.
> However...
>
> loopSetting = DVPLAY_LOOPING;
> IDirectFBDataBuffer *vidBuf;
> fwrite("The image data to a file");
> dfb->CreateVideoProvider(dfb, IMAGE_FILE,
> &animationProvider);
> animationProvider->SetPlaybackFlags(animationProvider,
> loopSetting);
>
> Will loop the animation just fine
>
>
> Has anyone had any similar experience or ran into any similar bugs?
>
This is not a bug. Simply VideoProvider can't loop because streamed data
buffer is not seekable, thus it can't rewind the stream when playback is
finished.
--
Regards,
Claudio Ciccani
[EMAIL PROTECTED]
http://directfb.org
http://sf.net/projects/php-directfb
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users