SendData
Function Usage
Sends data to the input element (appsrc) on the specified stream. The blocking mode is used. Multi-thread concurrency is not supported.
Prototype
1 2 | def SendData(streamName: bytes, inPluginId: int, dataInput: MxDataInput) -> int: pass |
1 2 | def SendData(streamName: bytes, elementName: bytes, dataInput: MxDataInput) -> int: pass |
1 2 | def SendData(streamName: bytes, elementName: bytes, metadataVec: MetadataInputVector, databuffer: MxBufferInput) -> 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. |
dataInput |
Data to be sent. |
|
elementName |
bytes |
Name of the input plugin. Only appsrc can be used as the input plugin. |
databuffer |
MxBufferInput |
Buffer data to be sent. |
metadataVec |
MetadataInputVector |
Sent metadata vector. |
Input example:
1 2 3 | metadata = MxMetadataInput() metadataVec = MetadataInputVector() metadataVec.push_back(metadata) |
Parent topic: StreamManagerApi