SDK — Media Communications Mesh#
SDK is the Software Development Kit in the form of a library providing SDK API to access Media Communications Mesh.
Library file name:
libmcm_dp.so
Header file to include:
mesh_dp.h
Detailed list of SDK API functions can be found in SDK API description.
Check Code examples of simple user apps for sending and receiving media streams.
General workflow#
Create a Mesh client
mesh_create_client()
Create a Mesh Tx or Rx connection
mesh_create_tx_connection()
mesh_create_rx_connection()
Get a buffer from the Mesh connection
mesh_get_buffer()
mesh_get_buffer_timeout()
Set the payload length – Only for Tx connection
mesh_buffer_set_payload_len()
Set the metadata length – Only for Tx connection
mesh_buffer_set_metadata_len()
Put the buffer to the Mesh connection
mesh_put_buffer()
mesh_put_buffer_timeout()
Shutdown the Mesh connection
mesh_shutdown_connection()
Delete the Mesh connection
mesh_delete_connection()
Delete the Mesh client
mesh_delete_client()
Usage scenarios#
There are two scenarios of using the SDK
Receiver App – Application that receives a media stream via the Mesh.
Option A – Receiving an SMPTE ST 2110 compliant media stream from an external device/host on the network, e.g. from a video camera.
Option B – Receiving a media stream from Multipoint Group in the Mesh.
Sender App – Application that sends a media stream via the Mesh.
Option A – Sending an SMPTE ST 2110 compliant media stream to an external multicast address on the network, e.g. to a video monitor.
Option B – Sending to Multipoint Group to pass the media stream to multiple receivers within the Mesh.
The diagram shows the typical flow of sequential SDK API calls used in both scenarios.