nx_cloud_storage_sdk
1.0
Cloud Storage SDK
|
Public Member Functions | |
StreamReader (const std::shared_ptr< DataManager > &dataManager, 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 |
![]() | |
RefCountable (const RefCountable &)=delete | |
RefCountable (RefCountable &&)=delete | |
RefCountable & | operator= (const RefCountable &)=delete |
RefCountable & | operator= (RefCountable &&)=delete |
virtual int | addRef () const override |
virtual int | releaseRef () const override |
int | refCount () const |
![]() | |
Result< const IString * > | opaqueMetadata () const |
Ptr< const IList< ICodecInfo > > | codecInfoList () const |
![]() | |
virtual IRefCountable * | queryInterface (const InterfaceId *id) |
Ptr< Interface > | queryInterface () |
Ptr< const Interface > | queryInterface () const |
![]() | |
virtual | ~IRefCountable ()=default |
template<class Interface > | |
Ptr< Interface > | queryInterface () |
template<class Interface > | |
Ptr< const Interface > | queryInterface () const |
int | refCountThreadUnsafe () const |
Protected Member Functions | |
virtual void | getOpaqueMetadata (nx::sdk::Result< const nx::sdk::IString *> *outResult) const override |
virtual const nx::sdk::IList< nx::sdk::cloud_storage::ICodecInfo > * | getCodecInfoList () const override |
![]() | |
virtual IRefCountable * | queryInterface (const IRefCountable::InterfaceId *id) override |
IRefCountable * | queryInterfaceSupportingDeprecatedId (const IRefCountable::InterfaceId *id, const Uuid &deprecatedInterfaceId) |
Additional Inherited Members | |
![]() | |
static constexpr auto | interfaceId () |
![]() | |
static auto | interfaceId () |
![]() | |
template<int len> | |
static constexpr const InterfaceId * | makeId (const char(&charArray)[len]) |
template<class TemplateInstance , class TemplateArg , int len> | |
static const InterfaceId * | makeIdForTemplate (const char(&baseIdCharArray)[len]) |
|
overridevirtual |
Attempts to read a next media data packet. Should return ErrorCode::noData if there is no data left to read.
Implements nx::sdk::cloud_storage::IStreamReader.
|
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.