5 #define MAXCLVIDEOS 64 + 1 // 1 video is reserved for the cinematic mode
6 #define CLVIDEOPREFIX "_"
7 #define CLTHRESHOLD 2.0
9 typedef enum clvideostate_s
18 typedef struct clvideo_s
34 // if a video is suspended, it is automatically paused (else we'd still have to process the frames)
35 double lasttime; // used to determine whether the video's resources should be freed or not
36 qboolean suspended; // when lasttime - realtime > THRESHOLD, all but the stream is freed
38 char filename[MAX_QPATH];
41 clvideo_t* CL_OpenVideo( char *filename, char *name, int owner );
42 clvideo_t* CL_GetVideo( char *name );
43 void CL_StartVideo( clvideo_t * video );
44 void CL_LoopVideo( clvideo_t * video );
45 void CL_PauseVideo( clvideo_t * video );
46 void CL_StopVideo( clvideo_t * video );
47 void CL_RestartVideo( clvideo_t *video );
48 void CL_CloseVideo( clvideo_t * video );
49 void CL_PurgeOwner( int owner );
51 void CL_VideoFrame( void ); // update all videos
52 void CL_Video_Init( void );
53 void CL_Video_Shutdown( void );
56 extern int cl_videoplaying;
58 void CL_DrawVideo( void );
59 void CL_VideoStart( char *filename );
60 void CL_VideoStop( void );