Function documentation - playback functions, Parameters, Returns – Sensoray 2246 User Manual

Page 39: Mid2246_api int sn_stopplayback (int board = 0)

Advertising
background image

Function Documentation - Playback functions

MID2246_API int SN_PlaybackVideo (char * filename_plus_path, int board = 0)

Plays back the specified video clip in the current window Default is first.

Parameters:

filename_plus_path A UTF-8 (standard ASCII) zero terminated string containing path of the file
to record to.
board ID if multiple boards installed.

Returns:

HRESULT

MID2246_API int SN_PlaybackVideoW (LPWSTR filename_plus_path, int board = 0)

Unicode version of SN_PlaybackVideo() Plays back the specified video clip in the current
window Default is first.

Parameters:

filename_plus_path Full filename plus path and no extension in unicode (Windows WideChar) of
the file to record to.
board ID if multiple boards installed.

Returns:

HRESULT

MID2246_API int SN_StopPlayback (int board = 0)

Stops video playback

Parameters:

board ID if multiple boards installed.

Returns:

0 on success

MID2246_API int SN_PausePlayback (BOOL bPause, int board = 0)

Pause/resume playback

Parameters:

bPause bPause = TRUE(pause), bPause=FALSE(resume)
board ID if multiple boards installed.

Returns:

0 on success

MID2246_API int SN_SetNotifyDuringFilePlay (HWND hNotifyApp, UINT mNotifyMessage,

int board = 0)

Enable the SN_PlaybackVideo function to send messages to an application indicating the
status of a playing video file.
To support this callback the called back application must include the following:

include "control.h" // for definition of IMediaEventEx

include "evcode.h" // for EC_COMPLETE (EC_COMPLETE = 0x01)

39

Advertising