NET_SDK_PlayBackByTimeSync¶
Interface Definition¶
1 2 3 4 5 6 7 8 | |
1 2 3 4 5 6 7 8 | |
Function Description¶
Different channels of the same device request synchronous playback, supporting switching between main stream and sub stream (synchronous playback is exclusive, and only synchronous playback or asynchronous playback can be selected during playback).
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:unsigned int
-
remark:0 means failure, and a value greater than 0 means successful playback. For example, if 4 streams are played back simultaneously, the third one fails to play, and the others succeed, the return value is 11, which is 1011 in binary.
Remarks¶
Synchronous playback does not support fast rewind function.