Network Camera & Live Cams Support

Microseven.com Help

M7 SDK Specification – M7 Series Network Camera Products

with one comment

I. Description

M7 SDK only uses for Microseven M7 series network camera products.

II. Method Detail

Method: unsigned long st_net_initServerInfo(char *ip_addr, int port, char *user_name, char *user_pwd);
Parameters: ip_addr – camera IP address.
port – port number.
user_name – username.
user_pwd – password.
Returns: user_id if the match succeeds, otherwise 0.
Description: camera network initialization, assigned to entire system, and start with it first.
Method: int st_net_deinitServerInfo(unsigned long user_id);
Parameters: user_id – a unique connection in network.
Returns: 0 if the match succeeds, otherwise –1.
Description: un–initialization, return resources for latest use.
Method: int st_net_modifyServerInfo(unsigned long user_id, char *ip_addr, int port, char *user_name, char *user_pwd);
Parameters: user_id – a unique connection in network.
ip_addr – camera IP address.
port – port number.
user_name – username.
user_pwd – password.
Returns: 0 if the match succeeds, otherwise –1.
Description: to modify created user_id information by st_net_initServerInfo.

Method: int st_net_GetIPAddress(const CString &sHostName, CString &sIPAddress);
Parameters: sHostName – domain name.
sIPAddress – domain name IP address.
Returns: 0 if the match succeeds, otherwise –1.
Description: domain name converts to IP address.
Method: int st_net_userLogin(unsigned long user_id);
Parameters: user_id – ID indicates a unique connection.
Returns: 1 if username is not matched.
2 if password is not matched.
-1 if connection to network is fail.
otherwise succeeds.
Description: to use this method when user login, and one camera is for one unique ID.
Method: int st_net_userLogout(unsigned long user_id);
Parameters: user_id – ID indicates a unique connection.
Returns: 0 if the match succeeds, otherwise –1.
Description: to use this method when it is cancelled, there is a unique ID for camera.
Method: int st_net_getUserRight(unsigned long user_id);
Parameters: user_id ID indicates a unique connection.
Returns: user type, Bit0~bit7 corresponded with:
viewing video,
PTZ control,
system parameters,
system information,
channel parameter,
other settings,
remote playback,
snapshot.
Description: to get user type.

Method: int st_net_sendMsgToServer(unsigned long user_id, int msg_type, int msg_subtype, void
*buf, int len);
Parameters: user_id – ID indicates a unique connection
msg_type – message type.
msg_subtype – message sub type.
buf – message pointer.
len – message length.
Returns: 0 if the match succeeds, otherwise –1.
Description: cannot call this method.
Method: int st_net_openChannelStream(unsigned long user_id, int channel, int protocol_type, int
channel_type, int realTime);
Parameters: user_id – ID indicates a unique connection,
channel – channel number.
protocol_type – protocol type.
channel_type – streaming type, 0 is for primary streaming; 1 is for secondary streaming.
realTime – smooth handler, 0 is for no smooth, 1 is for smooth (currently parameter set default as 0
only).
Returns: 0 if the match succeeds, otherwise –1.
Description: to open channel, must use it when video is previewed.
Method: int st_net_closeChannelStream(unsigned long user_id, int channel, int protocol_type, int
channel_type, int realTime);
Parameters: user_id – ID indicates a unique connection,
channel – channel number.
protocol_type – protocol type.
channel_type – channel streaming type, 0 is for primary streaming, 0 is for secondary streaming.
realTime – smooth handler, 0 is for no smooth, 1 is for smooth (currently parameter set default as 0
only).
Returns: 0 if the match succeeds, otherwise –1.
Description: to close channel
Method: int st_net_startChannelStream(unsigned long user_id, int channel, int stream_type, int
channel_type);
Parameters: user_id – ID indicates a unique connection.
channel – channel number.
stream_type – streaming type, 0 is for both audio and video streaming data, 1 is for video streaming
data only, 2 is for audio streaming data only.
channel_type – channel streaming type, 0 is for primary streaming, 1 is for secondary streaming.
Returns: 0 if the match succeeds, otherwise –1.
Description: to start to send data, after using st_net_openChannelStream, then following use this method.

Method: int st_net_stopChannelStream(unsigned long user_id, int channel, int stream_type, int
channel_type);
Parameters: user_id – indicates a unique connection.
channel – channel number.
stream_type – streaming type, 0 is for both audio and video streaming data, 1 is for video streaming
data only, 2 is for audio streaming data only.
channel_type – channel streaming type, 0 is for primary streaming, 1 is for secondary streaming.
Returns: 0 if the match succeeds, otherwise –1.
Description: to stop to send data.
Method: int st_net_forceKeyFrame(unsigned long user_id, int channel);
Parameters: user_id – ID indicates a unique connection.
channel – channel number.
Returns: 0 if the match succeeds, otherwise –1.
Description: to force I frame, may not be used.
Method: int st_net_startDualTalk(unsigned long user_id);
Parameters: user_id – ID indicates a unique connection.
Returns: 0 if the match succeeds, otherwise –1.
Description: to start to create audio in/out communication connecting.
Method: int st_net_stopDualTalk(unsigned long user_id);
Parameters: user_id ID indicates a unique connection.
Returns: 0 if the match succeeds, otherwise –1.
Description: to stop audio in/out connection.
Method: int st_net_sendAudioData(unsigned long user_id, char *buf, int len);
Parameters: user_id – ID indicates a unique connection.
Buf – send data.
len – length of data sending.
Returns: 0 if the match succeeds, otherwise –1.
Description: to send audio frame to camera through network.

Method: int st_net_setParam(unsigned long user_id, int type, void *param, int size);
Parameters: user_id – ID indicates a unique connection
type – parameter type
param – parameter constructor pointer.
size – how large is parameter construct size.
Returns: less than 0 if the match does not succeed.
Description: to set parameter.
Method: int st_net_getParam(unsigned long user_id, int type, void *param, int size);
Parameters: user_id – ID indicates a unique connection.
type – parameter type.
param – parameter constructor pointer, size is how large is parameter construct size.
Returns: less than 0 if the match does not succeed.
Description: to get parameters.
Method: int st_net_ptzControl(unsigned long user_id, int type, msg_ptz_control_t info);
Parameters: user_id – ID indicates a unique connection.
type – ptz type information.
Info – constructor of msg_ptz_control_t.
Returns: 0 if the match succeeds, otherwise –1.
Description: to control ptz.
Method: int st_net_matrixControl(unsigned long user_id, int type, msg_ptz_control_t *info);
Parameters: user_id – ID indicates a unique connection.
type – matrix type information.
info – matrix parameter information.
Returns: 0 if the match succeeds, otherwise –1.
Description: to control ptz matrix.
Method: int st_net_defaultSetting(unsigned long user_id);
Parameters: user_id ID indicates a unique connection.
Returns: 0 if the match succeeds, otherwise –1.
Description: to reset camera to default settings.

Method: int st_net_defOutPutSetting(unsigned long user_id);
Parameters: user_id ID indicates a unique connection.
Returns: 0 if the match succeeds, otherwise –1.
Description: to initial camera to factory settings.
Method: int st_net_defaultVidioParame(unsigned long user_id, unsigned char channel_no);
Parameters: user_id ID indicates a unique connection.
Returns: 0 if the match succeeds, otherwise –1.
Description: to reset video settings as default parameters.
Method: int st_net_restartDevice(unsigned long user_id);
Parameters: user_id ID indicates a unique connection.
Returns: 0 if the match succeeds, otherwise –1.
Description: to reboot camera.
Method: int st_net_harddiskPartition(unsigned long user_id, msg_hard_fdisk_t msg_hard_fdisk);
Parameters: user_id – ID indicates a unique connection.
msg_hard_fdisk disk – partition parameter.
Returns: 0 if the match succeeds, otherwise –1.
Description: to do disk partition.
Method: int st_net_fdiskStatus(unsigned long user_id, msg_hard_fdisk_status_t, msg_hard_fdisk_status);
Parameters: user_id – ID indicates a unique connection.
msg_hard_fdisk_status – disk partition status.
Returns: 0 if the match succeeds, otherwise –1.
Description: to get disk partition status.
Method: int st_net_harddiskFormat(unsigned long user_id, msg_part_format_t msg_part_format);
Parameters: user_id – ID indicates a unique connection.
msg_part_format – hard disk format parameter.
Returns: 0 if the match succeeds, otherwise –1.
Description: to format hard disk.

Method: int st_net_harddiskFormatStatus(unsigned long user_id, msg_hard_format_status_t, msg_hard_format_status);
Parameters: user_id – ID indicates a unique connection.
msg_hard_format_status is hard disk format status.
Returns: 0 if the match succeeds, otherwise –1.
Description: to get hard disk format status.
Method: int st_net_queryFileList(unsigned long user_id, msg_search_file_t file_param, msg_file_info_t *p_file_info);
Parameters: user_id – ID indicates a unique connection.
file_param – constructor.
msg_search_record_t – use to send searching condition.
p_file_info – constructor pointer msg_file_info_t user to return file information.
Returns: 0 if the match succeeds, otherwise –1.
Description: to search record video content files.
Method: int st_net_queryFileListByTime(unsigned long user_id, msg_search_file_t file_param, msg_fragment_t *p_file_info);
Parameters: user_id – ID indicates a unique connection,
file_param – constructor
msg_search_record_t- use to send searching condition.
p_file_info – constructor pointer msg_fragment_t use to return file information.
Returns: 0 if the match succeeds, otherwise –1.
Description: to search record video content files (time).
Method: int st_net_deleteFile(unsigned long user_id, msg_delete_file_t msg_delete_file);
Parameters: user_id – ID indicates a unique connection.
msg_delete_file – delete file parameter.
Returns: 0 if the match succeeds, otherwise –1.
Description: to delete record video content file.

Method: int st_net_setSystemTime(unsigned long user_id, msg_time_t tm);
Parameters: user_id – ID indicates a unique connection.
tm – constructor msg_time_t for set time
Returns: 0 if the match succeeds, otherwise –1.
Description: to set system time.
Method: int st_net_getSystemTime(unsigned long user_id, msg_time_t *tm);
Parameters: user_id ID indicates a unique connection.
tm – system time from constructor pointer msg_time_t.
Returns: 0 if the match succeeds, otherwise –1.
Description: to get system time.
Method: int st_net_getVersionInfo(unsigned long user_id, msg_version_info_t *info);
Parameters: user_id – ID indicates a unique connection.
info – version information from constructor pointer msg_version_info_t.
Returns: 0 if the match succeeds, otherwise –1.
Description: to get version information.
Method: int st_net_getHarddiskInfo(unsigned long user_id, msg_harddisk_data_t *info);
Parameters: user_id – ID indicates a unique connection.
info – hard disk information from constructor pointer msg_harddisk_data_t.
Returns: 0 if the match succeeds, otherwise –1.
Description: to get hard disk information.
Method: int st_net_getSystemStatus(unsigned long user_id, msg_system_status_t *info);
Parameters: user_id ID indicates a unique connection.
info – system status from constructor pointer msg_system_status_t.
Returns: 0 if the match succeeds, otherwise –1.
Description: to get system status.
Method: int st_net_queryLog(unsigned long user_id, msg_search_log_t msg_search_log, msg_log_info_t
*p_msg_log_info);
Parameters: user_id – ID indicates a unique connection.
msg_search_log – search log condition from constructor msg_search_log_t.
p_msg_log_info – get log information from constructor pointer msg_log_info_t.
Returns: log int if the match succeeds, less than 0 if the match does not succeed, log integer maximum number is 1024, and minimum number is 0.
Description: to get system log.

Method: int st_net_deleteLog(unsigned long user_id, msg_search_log_t msg_search_log);
Parameters: user_id – ID indicates a unique connection.
msg_search_log- delete log condition from constructor msg_search_log_t.
Returns: 0 if the match succeeds, otherwise –1.
Description: to delete system log.
Method: int st_net_alarmControl(unsigned long user_id, msg_alarm_control_t param);
Parameters: user_id – ID indicates a unique connection
param – release alerts information if set or not set from constructor msg_alarm_control_t
0 is for no set alerts, 1 is for set alerts.
Returns: 0 if the match succeeds, otherwise –1.
Description: to get alerts information.
Method: int st_net_getUpgradeStatus(unsigned long user_id, msg_upgrade_status_t *info);
Parameters: user_id – ID indicates a unique connection.
info – update constructor pointer msg_upgrade_status_t.
Returns: 0 if the match succeeds, otherwise –1.
Description: to get updates status.
Method: int st_net_queryUserInfo(unsigned long user_id, msg_user_info_t *p_user);
Parameters: user_id – ID indicates a unique connection.
p_user – user information from constructor pointer msg_user_info_t.
Returns: 0 if the match succeeds, otherwise –1.
Description: to get user information.


Method: int st_net_addUser(unsigned long user_id, msg_user_info_t user);
Parameters: user_id – ID indicates a unique connection.
user – user information from constructor msg_user_info_t.
Returns: 0 if the match succeeds, otherwise –1.
Description: to add user.

Method: int st_net_deleteUser(unsigned long user_id, msg_user_info_t user);
Parameters: user_id – ID indicates a unique connection.
user – user information from constructor msg_user_info_t.
Returns: 0 if the match succeeds, otherwise –1.
Description: to delete user.
Method: int st_net_changeUser(unsigned long user_id, msg_user_info_t user);
Parameters: user_id ID indicates a unique connection.
user – user information from constructor msg_user_info_t.
Returns: 0 if the match succeeds, otherwise –1.
Description: to modify user.
Method: int st_net_downloadPicture(unsigned long user_id, msg_download_pic_t info, char *pic_name);
Parameters: user_id – ID indicates a unique connection.
info – parameter of picture snapshot remotely.
pic_name – download saved filename.
Returns: 0 if the match succeeds, otherwise –1.
Description: to download picture snapshot remotely.
Method: int st_net_downloadFile(unsigned long user_id, msg_download_t info, char *savefilename, msg_file_down_Status* file_down_Status, int fileType);
Parameters: user_id – ID indicates a unique connection.
info – parameter of download file
savefilename – download saved filename.
fileType – 0 is for other media file type, 1 is for avi media streaming file type.
file_down_Status – file downloading process status.
Returns: 0 if the match succeeds, otherwise –1.
Description: file download.

Method: int st_net_downloadFileByTime(unsigned long user_id, msg_fragment_t info, char *savefilename, msg_file_down_Status* file_down_Status, int fileType);
Parameters: user_id – ID indicates a unique connection
info – parameter of downloading file.
savefilename – download saved filename.
fileType – 0 is for other media streaming file type, 1 is for avi media streaming file type.
file_down_Status – file downloading progress status.
Returns: 0 if the match succeeds, otherwise –1.
Description: file download (time).
Method: int st_net_stopDownloadFile(unsigned long user_id);
Parameters: user_id – ID indicates a unique connection.
Returns: 0 if the match succeeds, otherwise –1.
Description: to stop to download file.
Method: int st_net_stopDownloadFileByTime (unsigned long user_id);
Parameters: user_id – ID indicates a unique connection.
Returns: 0 if the match succeeds, otherwise –1.
Description: to stop to download file (time).
Method: unsigned long st_net_startRemotePlay(unsigned long user_id, msg_play_record_t msg_play_record, msg_recordplay_t *msg_recordplay);
Parameters: user_id – ID indicates a unique connection.
msg_play_record – playback parameter
msg_recordplay – playback file information.
Returns: playback ID if the match succeeds, otherwise –1.
Description: to playback recorded video.
Method: int st_net_stopRemotePlay(unsigned long remote_play_id);
Parameters: remote_play_id – ID indicates a unique connection.
Returns: 0 if the match succeeds, otherwise –1.
Description: to stop to playback recorded video.
Method: int st_net_RemotePlayPosition(unsigned long remote_play_id, int current_frameno);
Parameters: remote_play_id – ID indicates a unique connection.
current_frameno – number of current playback frame per second.
Returns: 0 if the match succeeds, otherwise –1.
Description: to control playback position randomly.

Method: unsigned long st_net_startRemotePlayByTime(unsigned long user_id, msg_fragment_t,msg_play_record, msg_recordplay_t *msg_recordplay);
Parameters: user_id – ID indicates a unique connection.
msg_play_record – parameter of playback
msg_recordplay – playback file’s information
Returns: playback ID if the match succeeds, otherwise -1.
Description: to playback recorded file (time).
Method: int st_net_stopRemotePlayByTime(unsigned long remote_play_id);
Parameters: remote_play_id – ID indicates a unique connection.
Returns: 0 if the match succeeds, otherwise –1.
Description: to stop playback recorded file (time).
Method: st_net_RemotePlayPositionByTime(unsigned long remote_play_id, int current_frameno);
Parameters: remote_play_id ID indicates a unique connection.
current_frameno – current playback frame number.
Returns: 0 if the match succeeds, otherwise –1.
Description: to control position of random playback recorded video file (time).
Method: int st_net_startRecord(unsigned long user_id, int channel, char *filename);
Parameters: user_id – ID indicates a unique connection
channel – channel number.
filename – recording saved filename.
Returns: 0 if the match succeeds, otherwise –1.
Description: to start local recording.
Method: int st_net_stopRecord(unsigned long user_id, int channel);
Parameters: user_id – ID indicates a unique connection.
channel – channel number
Returns: 0 if the match succeeds, otherwise –1.
Description: to stop local recording.

Method: int st_net_remote_start_hand_record(unsigned long user_id, msg_remote_hand_record_t, msg_remote_hand_record);
Parameters: user_id – ID indicates a unique connection.
msg_remote_hand_record – recording parameter.
Returns: 0 if the match succeeds, otherwise –1.
Description: to start PU manual recording.
Method: int st_net_remote_stop_hand_record(unsigned long user_id, msg_remote_hand_record_t, msg_remote_hand_record);
Parameters: user_id – ID indicates a unique connection.
msg_remote_hand_record – recording parameter.
Returns: 0 if the match succeeds, otherwise –1.
Description: to stop PU manual recording.
Method: int st_net_upgradeSystem(unsigned long user_id, char *file_name);
Parameters: user_id ID indicates a unique connection.
file_name – update filename.
Returns: 0 if the match succeeds, otherwise –1.
Description: to update system using new firmware.
Method: int st_net_getDeviceType(unsigned long user_id);
Parameters: user_id – ID indicates a unique connection.
Returns: device type if the match succeeds.
Description: to get device type.
Method: int st_net_getBitRate(unsigned long user_id, int channel);
Parameters: user_id – ID indicates a unique connection.
channel – channel number.
Returns: 0 if the match succeeds, otherwise –1.
Description: to get channel bit rate.
Method: int st_net_getLoginStatus(unsigned long user_id);
Parameters: user_id – ID indicates a unique connection ,
Returns: 0 if it is logout, 1 if it is login.
Description: to get login status.

Method: int st_net_getChannelStatus(unsigned long user_id, int ichannel);
Parameters: user_id – ID indicates a unique connection.
channel – channel number.
Returns: 0 if it is not connected, 1 if it is connected.
Description: to get channel status.
Method: int st_net_getHeartbeatStatus(unsigned long user_id);
Parameters: user_id – ID indicates a unique connection.
Returns: 0 if the match succeeds, otherwise –1.
Description: to get heart beep message.
Method: int st_net_searchDevice(msg_broadcast_t *msg_broadcast, int iMaxCount);
Parameters: iMaxCount – device maximum (limitation).
msg_broadcast – group of storage result.
Returns: 0 if the match succeeds, otherwise –1.
Description: to broadcast and search device.
Method: int st_net_broadcastSetIp(msg_broadcast_setnetinfo_t msg_broadcast_setnetinfo);
Parameters: msg_broadcast_setnetinfo – to modify network message parameter by broadcasting
Returns: 0 if the match succeeds, otherwise –1.
Description: to modify network message by broadcasting.
Method: int st_net_broadcastDefaultSetting(msg_broadcast_default_t msg_broadcast_default);
Parameters: msg_broadcast_default – default parameter setting.
Returns: 0 if the match succeeds, otherwise –1.
Description: broadcasting default settings reset.

Method: int st_net_broadcastFactorySetting(msg_broadcast_default_t msg_broadcast_default);
Parameters: msg_broadcast_default – default parameter settings
Returns: 0 if the match succeeds, otherwise –1.
Description: to reset factory default settings by broadcast.
Method: int st_net_searchWirelessDevice (unsigned long user_id, msg_wireless_info_t*p_wireless_info);
Parameters: user_id – ID indicates a unique connection.
p_wireless_info – user information from constructor msg_wireless_info_t.
Returns: 0 if the match succeeds, otherwise –1.
Description: to get search wireless router information.
Method: int st_net_stopBidiTransparentCmd(unsigned long user_id);
Parameters: user_id – ID indicates a unique connection.
Returns: 0 if the match succeeds, otherwise –1.
Description: to stop transparent transmission.
Method: int st_net_sendBidiTransparentCmd(unsigned long user_id, msg_transparent_send_t, msg_transparent_send);
Parameters: user_id – ID indicates a unique connection.
msg_transparent_send – command parameter.
Returns: 0 if the match succeeds, otherwise –1.
Description: to send transparent transmission command.
Method: int st_net_registerChannelStreamCallback(unsigned long user_id, int channel, CHANNEL_STREAM_CALLBACK callback, void *context);
Parameters: user_id – ID indicates a unique connection.
channel – channel number.
callback – call back function (method).
context – save information.
Returns: 0 if the match succeeds, otherwise –1.
Description: register to call back when previewing, camera (device) end to send message to CHANNEL_STREAM_CALLBACK.

Method: int st_net_registerServerMsgCallback(unsigned long user_id, SERVER_MSG_CALLBACK callback, void *context);
Parameters: user_id – ID indicates a unique connection.
callback – call back function (method).
context – saved information.
Returns: 0 if the match succeeds, otherwise –1.
Description: server information to register call back, camera (device) end to send server message to SERVER_MSG_CALLBACK.
Method: int st_net_registerServerAlarmInfoCallback(unsigned long user_id, ALARM_INFO_CALLBACK callback, void *context);
Parameters: user_id – ID indicates a unique connection.
callback – call back function (method).
context – saved information.
Returns: 0 if the match succeeds, otherwise –1.
Description: server alerts information to register call back, camera (device) end to send alerts message to ALARM_INFO_CALLBACK.
Method: int st_net_registerServerPlayrecordStatusCallback(unsigned long user_id, PLAYRECORD_STATUS_CALLBACK callback, void *context);
Parameters: user_id – ID indicates a unique connection.
callback – call back function (method).
context – saved information.
Returns: 0 if the match succeeds, otherwise –1.
Description: server playback status to register call back, camera (device) end to send current playback status to PLAYRECORD_STATUS_CALLBACK.
Method: int st_net_registerServerPlayrecordDecodeCallback(unsigned long user_id, PLAYRECORD_DECODE_CALLBACK callback, void *context);
Parameters: user_id – ID indicates a unique connection.
callback – call back function (method).
context – saved information.
Returns: 0 if the match succeeds, otherwise –1.
Description: server playback to register call back, camera (device) end to send data for decoding to PLAYRECORD_DECODE_CALLBACK

Method: int st_net_registerUpdateStatusCallback(unsigned long user_id,UPDATE_STATUS_CALLBACK callback, void *context);
Parameters: user_id – ID indicates a unique connection.
callback – call back function (method).
, context – saved information.
Returns: 0 if the match succeeds, otherwise –1.
Description: camera (device) update new firmware to register call back, camera (device) end to send update progress status to UPDATE_STATUS_CALLBACK.
Method: int st_net_registerTalkStreamCallback(unsigned long user_id, TALK_STREAM_CALLBACK callback, void *context);
Parameters: user_id ID indicates a unique connection.
callback – call back function (method).
TALK_STREAM_CALLBACK – call back function, accept camera (device) end data.
Returns: 0 if the match succeeds, otherwise –1.
Description: to register call back, and to accept data.
Method: int st_net_registerTransparentCmdCallback(unsigned long user_id, BIDI_TRANSPARENT_CALLBACK callback, void *context);
Parameters: user_id – ID indicates a unique connection.
callback – call back function (method).
context – saved information.
Returns: 0 if the match succeeds, otherwise –1.
Description: to register call back, and to accept data.
Method: int st_net_beginplayback(unsigned long user_id);
Parameters: user_id – ID indicates a unique connection.
Returns: 0 if the match succeeds, otherwise –1.
Description: to start to rewind for DVR playback.
Method: int st_net_stopplayback(unsigned long user_id);
Parameters: user_id – ID indicates a unique connection.
Returns: 0 if the match succeeds, otherwise –1.
Description: to stop to rewind for DVR playback.

Method: int st_net_defaultCcdParame(unsigned long user_id);
Parameters: user_id – ID indicates a unique connection.
Returns: 0 if the match succeeds, otherwise –1.
Description: CCD default parameter.
Method: int st_net_defaultItuParame(unsigned long user_id);
Parameters: user_id – ID indicates a unique connection.
Returns: 0 if the match succeeds, otherwise –1.
Description: ITU default parameter.
Method: int st_net_RemotePlayMode(unsigned long user_id, int current_frameno, int flag);
Parameters: user_id – ID indicates a unique connection.
current_frameno – current playback frame number.
flag – flag.
normal is 4.
stop is 5.
slow: slow 2x 4x 8x 16x corresponding to 21, 22, 23, 24.
fast: fast 2x 4x 8x 16x corresponding to 31, 32, 33, 34.
Returns: 0 if the match succeeds, otherwise –1.
Description: playback speed mode control.
Method: int st_net_get3GModuleInfo(unsigned long user_id , msg_3G_module_info_t*msg_3g_module_info);
Parameters: user_id – ID indicates a unique connection.
msg_3g_module_info – parameter of 3GModule status information
msg_3G_module_info_t constructor pointer msg_3g_module_info to return file information.
Returns: 0 if the match succeeds, otherwise –1.
Description: 3G Module status search.
Method: int st_net_restart_3G_module (unsigned long user_id);
Parameters: user_id ID indicates a unique connection.
Returns: 0 if the match succeeds, otherwise –1.
Description: Reboot 3G Module.

Written by microseven

October 26th, 2010 at 11:51 pm

Posted in