SendDataWithUniqueId

Function Usage

Sends data to the input element (appsrc) on the specified stream. The blocking mode is used. Multi-thread concurrency is supported.

Prototype and Input Parameter Description

def SendDataWithUniqueId(streamName: bytes, inPluginId: int, dataInput: MxDataInput) -> int:
    pass

Parameter

Type

Description

streamName

bytes

Stream name

inPluginId

int

ID of the object input plugin, that is, the ID of the appsrc element

dataBuffer

For details, see MxDataInput.

Data to be sent

def SendDataWithUniqueId(streamName: bytes, elementName: bytes, dataInput: MxDataInput) -> int:
    pass

Parameter

Type

Description

streamName

bytes

Stream name

elementName

bytes

Name of the input plugin. Only appsrc can be used as the input plugin.

dataBuffer

For details, see MxDataInput.

Data to be sent

Return Parameter Description

Data Structure

Description

int

ID returned after data is sent. The corresponding result is obtained based on the ID by calling GetResultWithUniqueId. If the result is -1, the data fails to be sent.