RTSP player web pages without plug-ins live streaming audio and video player libEasyPlayer-RTSP library interface call Description

EasyPlayer-RTSP player
EasyPlayer-RTSP RTSP player is a dedicated player, including: Windows (IE plug-in support, npapi plug-in), Android, iOS three platforms, is different from the market most universal player , EasyPlayer-RTSP series from the early 2014 development has been widely used all walks of life (especially in the security industry), and the main reason is EasyPlayer-RTSP more refined, more focused, have very low latency, very high RTSP protocol compatible sexual, encoded data analysis, which have a very big advantage.

 

 

libEasyPlayer-RTSP library interface call Description


API functions defined interfaces

Function Description: activate EasyPlayer
int EasyPlayer_Init (char * Key)

Function Description: start streaming
Parameters: url streaming address, the hWnd window handle, RenderFormat encoding format, the transmission mode rtpovertcp pull stream, 0 = udp, 1 = tcp , user name, password, callback data callback, bHardDecode hardware decoding 1 = yes, 0 = no.
int EasyPlayer_OpenStream (const char * url, HWND hWnd, RENDER_FORMAT renderFormat, int rtpovertcp, const char * username, const char * password, MediaSourceCallBack callback = NULL, void * userPtr = NULL, bool bHardDecode = true)

Function Description: Close Flow
Parameters: channelId is channel ID, EasyPlayer_OpenStream function return value.
Int EasyPlayer_CloseStream (int channelId is)

Function Description: Sets the current streaming frame buffer.
Parameters: channelId is channel ID, EasyPlayer_OpenStream function returns a value
cache buffered video frames
int EasyPlayer_SetFrameCache (int channelId, int cache )

Function Description: Player scale display
Parameters: channelId is channel ID, EasyPlayer_OpenStream function returns the value
shownToScale 0 = the entire area of the display window, a display scale =
int EasyPlayer_SetShownToScale (int channelId, int shownToScale )

Function Description: Sets the decoded Type
Parameter Description: channelId is channel ID, EasyPlayer_OpenStream function returns the value
decodeKeyframeOnly 0 = decode all frames, only the decoded key frame 1 =
int EasyPlayer_SetDecodeType (int channelId, int decodeKeyframeOnly )

Function: a video display rendering region setting
Parameters: channelId is channel ID, EasyPlayer_OpenStream function return value
lpSrcRect render region disposed rectangular structure
int EasyPlayer_SetRenderRect (int channelId, IntPtr lpSrcRect )

Function Description: setting whether to display the information stream
Parameters: channelId is channel ID, EasyPlayer_OpenStream function returns a value
Show 0 = not displayed, display 1 =
int EasyPlayer_ShowStatisticalInfo (int channelId, int show )

Function Description: text display attachments
Parameters: channelId is channel ID, 1 display, the display is not 0, osdInfo disposed rectangular structure pointer rendering region
int EasyPlayer_ShowOSD (int channelId, int show , EASY_PALYER_OSD osdInfo)

Function Description: start playing the sound
Parameters: channelId is channel ID, EasyPlayer_OpenStream function returns the value
int EasyPlayer_PlaySound (int channelId)

Function: the sound is stopped
Parameters: channelId is channel ID, EasyPlayer_OpenStream function returns the value
int EasyPlayer_StopSound (int channelId)

Function Description: Sets the manual capture storage path
Parameters: channelId is channel ID, EasyPlayer_OpenStream function returns the value
shotPath path
int EasyPlayer_SetManuPicShotPath (int channelId, string shotPath )

Function Description: Start Capture
Parameters: channelId is channel ID, EasyPlayer_OpenStream function returns the value
int EasyPlayer_StartManuPicShot (int channelId)

Function: Stop Capture
Parameters: channelId is channel ID, EasyPlayer_OpenStream function returns the value
int EasyPlayer_StopManuPicShot (int channelId)

Function Description: start recording mp4 file
Parameters: channelId is channel ID, EasyPlayer_OpenStream function returns the value
int EasyPlayer_StartManuRecording (int channelId)

Function Description: Sets the record video file path
Parameters: channelId is channel ID, EasyPlayer_OpenStream function returns the value
recordPath save path
int EasyPlayer_SetManuRecordPath (int channelId, string recordPath );

Function: Stop Recording
Parameters: channelId is channel ID, EasyPlayer_OpenStream function return value

Guess you like

Origin www.cnblogs.com/TSINGSEE/p/11820304.html