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

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

Input Parameters

Parameter

Type

Description

streamName

bytes

Stream name.

inPluginId

int

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

elementName

bytes

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

dataInput

MxDataInput

Data to be sent.

Response Parameters

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.