Template function, which sends data to the input element (appsrc) on the specified stream. When the memory is insufficient, an exception is thrown in the function. Multi-thread concurrency is not supported.
Currently, the following data can be input:
1 2 | template <class T> APP_ERROR MxStreamManager::SendPacket(Packet<T>& packet, const std::string& streamName, const std::string& elementName) |
Parameter |
Input/Output |
Description |
|---|---|---|
packet |
Input |
Packet data |
streamName |
Input |
Stream name |
elementName |
Input |
Element name |
Data Structure |
Description |
|---|---|
APP_ERROR |
For details about the returned error codes, see APP_ERROR Description. |