NET_SDK_PlayBackByTimeEx¶
Interface Definition¶
1 2 3 4 5 6 7 8 | |
1 2 3 4 5 6 7 8 | |
Function Description¶
Play back video files by time, support switching between main stream and sub stream.
Parameter Description¶
| Parameters | Type | Remark |
|---|---|---|
| lUserIDin | LONG | User ID, the return value of NET_SDK_Login or NET_SDK_LoginEx. |
| pChannelsin | LONG* | The channel number array to be played back. The channel number starts from 0. |
| channelNumin | LONG | The number of channels in the array pChannels. |
| lpStartTimein | DD_TIME* | The start time pointer of the file, refer to DD_TIME. |
| lpStopTimein | DD_TIME* | File end time pointer, refer to DD_TIME. |
| hWndsin | HWND* | The playback window handle (only supported on Windows platform). If it is set to null, the SDK can still receive the stream data but will not decode and display it. |
| bFirstStreamin | BOOL | Whether to play the main stream, false means the sub-stream. |
Return Value¶
-
type:POINTERHANDLE
-
remark:-1 indicates failure, other values are used as the playback handle.
Remarks¶
This interface specifies the video file to be played. After successfully calling this interface, you can register the callback function through the interfaces NET_SDK_SetPlayDataCallBack and NET_SDK_SetPlayYUVCallBack to capture the video stream data and process it yourself.