Tao.Sdl SDK Documentation

Smpeg.SMPEG_setdisplay Method 

Set the destination surface for MPEG video playback

[Visual Basic]
Public Shared Sub SMPEG_setdisplay( _
   ByVal mpeg As IntPtr, _
   ByVal dst As IntPtr, _
   ByVal surfLock As IntPtr, _
   ByVal callback As SMPEG_DisplayCallback _
)
[C#]
public static void SMPEG_setdisplay(
   IntPtr mpeg,
   IntPtr dst,
   IntPtr surfLock,
   SMPEG_DisplayCallback callback
);

Parameters

mpeg
Handle to MPEG file.
dst
surfLock
'surfLock' is a mutex used to synchronize access to 'dst', and can be NULL.
callback
'callback' is a function called when an area of 'dst' needs to be updated. If 'callback' is NULL, the default function (SDL_UpdateRect) will be used.

Remarks

Binds to a C-function call in smpeg.h

            void SMPEG_setdisplay(SMPEG* mpeg, SDL_Surface* dst, SDL_mutex* surfLock, SMPEG_DisplayCallback callback);
            

See Also

Smpeg Class | Tao.Sdl Namespace