SendData

Function Usage

Sends data to the specified input plugin (appsrc).

Prototype

1
APP_ERROR Stream::SendData(const std::string& elementName, std::vector<MxstMetadataInput>& metadataVec, MxstBufferInput& dataBuffer);

Parameters

Parameter

Input/Output

Description

elementName

Input

Name of input plugin appsrc.

metadataVec

Input

List of sent protobuf data. For details, see MxstMetadataInput.

dataBuffer

Input

Data to be sent. The value of bufferInput.dataSize must be equal to the size of the memory to be sent and within the range of [1, 4294967296]. bufferInput.dataPtr needs to be deleted. For details about the data type, see MxstBufferInput.

Response Parameters

Data Structure

Description

APP_ERROR

For details about the returned error codes, see APP_ERROR Description.