Stream metadata returns information on an active stream.
The response will include a data
object that will
include various information depending on the type and state of
the stream being requested. Note that the structure will be variable
so any code reading this result will need to handle some entries
being potentially absent or different without warning.
The output will include metadata about the video/audio codecs, and if the stream is recording. Any active push publishes or transcodes will be shown. For channels, the active playlist ID and item will be shown.
Stream Type
Enum:live, channel, switchboard, transcode
Default:
Sample value:0
Date and time the stream published
Default:
Sample value:2019/12/05 19:41:54
Unique Identifier of the playlist
Default:0
Sample value:1234
Only for:
type: channel
Name of the stream being played
Default:
Sample value:mp4:my_video.mp4
Only for:
type: switchboard
Name of the Video being played
Default:
Sample value:mp4:my_video.mp4
Only for:
type: channel
Index of the video in the current playlist
Default:0
Sample value:0
Only for:
type: channel
Codec information containing properties for: audio, audio_type, video, and video_type
Sample value:Array
Metadata information sent from the encoder and embedded into the stream.
Sample value:Array
List of pushes that are being sent from this stream.
Sample value:Array
Get the Stream_metadata object with id .
https://api.scaleengine.net/v2/stream_metadata/
curl --user 158:8fc8c48da81e6a2a06a9556379bf798af508dc0792497c678b4c3532ba8b637f https://api.scaleengine.net/v2/stream_metadata/
None
{ "inst": "live", "type": 0, "isRecording": "false", "publish_time": "2019/12/05 19:41:54", "playlist_id": 1234, "now_playing": "mp4:my_video.mp4", "video": "mp4:my_video.mp4", "video_index": 0, "transcoders": [], "transcoder_count": 0, "last_chunk_id": 0, "codec": { "audio_type": "AAC", "video_type": "H264", "audio": "mp4a.40.2", "video": "avc1.42801e" }, "metadata": [], "push_publish": [ { "entry_name": "cupertino-akamai-adaptive", "stream": "my_stream", "profile": "cupertino-akamai-adaptive", "status": "Connected" } ] }
Create a new Stream_metadata object.
https://api.scaleengine.net/v2/stream_metadata
curl -X PUT --data-binary @/path/to/request/body --user 158:8fc8c48da81e6a2a06a9556379bf798af508dc0792497c678b4c3532ba8b637f https://api.scaleengine.net/v2/stream_metadata
None
{ "inst": "live", "type": 0, "isRecording": "false", "publish_time": "2019/12/05 19:41:54", "playlist_id": 1234, "now_playing": "mp4:my_video.mp4", "video": "mp4:my_video.mp4", "video_index": 0, "transcoders": [], "transcoder_count": 0, "last_chunk_id": 0, "codec": { "audio_type": "AAC", "video_type": "H264", "audio": "mp4a.40.2", "video": "avc1.42801e" }, "metadata": [], "push_publish": [ { "entry_name": "cupertino-akamai-adaptive", "stream": "my_stream", "profile": "cupertino-akamai-adaptive", "status": "Connected" } ] }
Update the Stream_metadata object with id .
https://api.scaleengine.net/v2/stream_metadata/
curl -X POST --data-binary @/path/to/request/body --user 158:8fc8c48da81e6a2a06a9556379bf798af508dc0792497c678b4c3532ba8b637f https://api.scaleengine.net/v2/stream_metadata/
None
{ "inst": "live", "type": 0, "isRecording": "false", "publish_time": "2019/12/05 19:41:54", "playlist_id": 1234, "now_playing": "mp4:my_video.mp4", "video": "mp4:my_video.mp4", "video_index": 0, "transcoders": [], "transcoder_count": 0, "last_chunk_id": 0, "codec": { "audio_type": "AAC", "video_type": "H264", "audio": "mp4a.40.2", "video": "avc1.42801e" }, "metadata": [], "push_publish": [ { "entry_name": "cupertino-akamai-adaptive", "stream": "my_stream", "profile": "cupertino-akamai-adaptive", "status": "Connected" } ] }
Delete the Stream_metadata object with id .
https://api.scaleengine.net/v2/stream_metadata/
curl -X DELETE --user 158:8fc8c48da81e6a2a06a9556379bf798af508dc0792497c678b4c3532ba8b637f https://api.scaleengine.net/v2/stream_metadata/
None