GET Bitrate: Get the Bitrate of an MPTS Output
HTTP Request and Response
Request URL
Get the status of the specified MPTS output.
GET http://<Conductor IP address>/mpts/<ID of mpts>/status
Call Header
-
Accept: Set to application/xml
If you are implementing user authentication, you must also include three authorization headers; see Header Content for User Authentication.
Response
If the MPTS output has not been running
in the last hour (meaning no bitrate information exists), then the response
is XML content consisting of one mpts_stats
that
contains:
-
id_type
-
an empty mpts_members array
If there is bitrate information within the last hour for the MPTS output,
then the response is XML content consisting of one mpts_stats
elements (of type “array”) that contains:
-
An HREF attribute that specifies the product and version installed on the Conductor Live node.
-
One
mpts_stats
element that contains the following.Element Value Description mpts_stats One instance id Integer A temporary ID for the specified MPTS. This ID is ephemeral and should not be stored. mpts_members Array 1 or more instances mpts_member Array 1 or more instances id
Integer A temporary ID for the MPTS member in the specified MPTS. This ID is ephemeral and should not be stored. name String The name of the MPTS member, which is identical to the name attribute of the channel that is associated with this MPTS member. So, if the MPTS member is associated with Channel_C, the name of the MPTS member is Channel_C. series_data 1 instance for each mpts_member. series_datum 1 or more instances.
Each mpts_member contains one series_data that itself contains several series_datum elements. All the MPTS members contain the same number of series_datum. In other words, every member has a snapshot at timestamp “1418939884” (the timestamp may vary by 1 second in different mpts_members).
timestamp Integer The timestamp for this piece of data in Unix time. mpts_id Integer Same as the first id: A temporary ID for the specified MPTS. channel_id Integer The ID of the channel that is associated with this MPTS member. So the name (above) and this channel_id refer to the same channel entity. bitrate Float The bitrate (in bits/second) for this MPTS member at the point identified by the timestamp.