|
| StreamReader (const std::string &deviceId, int streamIndex, int64_t startTimeMs, int64_t durationMs) |
|
virtual nx::sdk::ErrorCode | getNextData (nx::sdk::cloud_storage::IMediaDataPacket **packet) override |
|
virtual int64_t | startTimeUs () const override |
|
virtual int64_t | endTimeUs () const override |
|
virtual nx::sdk::ErrorCode | seek (int64_t timestampUs, bool findKeyFrame, int64_t *selectedPositionUs) override |
|
◆ getNextData()
◆ seek()
nx::sdk::ErrorCode nx::vms_server_plugins::cloud_storage::sample::StreamReader::seek |
( |
int64_t |
timestampUs, |
|
|
bool |
findKeyFrame, |
|
|
int64_t * |
selectedPositionUs |
|
) |
| |
|
overridevirtual |
Moves stream data cursor to the required position if possible. This position may be greater than requested if there is no media data packet with the exact timestamp. If 'findKeyFrame' is true, selected position should correspond to the media data packet which has 'isKeyFrame' flag set.
Implements nx::sdk::cloud_storage::IStreamReader.
The documentation for this class was generated from the following files:
- samples/sample_cloud_storage_plugin/src/nx/vms_server_plugins/cloud_storage/sample/stream_reader.h
- samples/sample_cloud_storage_plugin/src/nx/vms_server_plugins/cloud_storage/sample/stream_reader.cpp