can't play .avi or .mpg

Posted By: dgsj

can't play .avi or .mpg - 09/18/08 10:16

my code is very simple
#include <litec.h>
#include <default.c>
#include <acknex.h>
void main()
{
video_mode = 7;
media_play("clock.avi",NULL,50);
while(1)
{
wait(1);
}
}

but it doesn't work...
An error is "Attempt to use uninitialized D3D device."
Posted By: Nidhogg

Re: can't play .avi or .mpg - 09/18/08 10:19

Unless your using pure lite-c mode I don't think you need litec.h

Read the manual it will tell you about media_play make sure you use
the lite-c example and NOT c-script..
Posted By: Tobias

Re: can't play .avi or .mpg - 09/18/08 11:38

Quote:
Error E1507: Video not yet initialized

You called a DirectX function in the first frame before DirectX was initialized. Use wait(1) to wait for the second frame when a DirectX device is available.


The manual is your friend.
Posted By: dgsj

Re: can't play .avi or .mpg - 09/19/08 01:36

thanks
© 2024 lite-C Forums