Send Event
OvenMediaEngine Enterprise supports Ad Markers insertion starting from version 0.17.3.0-1.
You can dynamically insert Ad Markers into LL-HLS and HLS playlists using the REST API.
API Interface
Request
POST /v1/vhosts{vhost}/apps/{app}/streams/{stream}:sendEvent
Header
Authorization: Basic {credentials}
# Authorization
Credentials for HTTP Basic Authentication created with <AccessToken>
Body
{
"eventFormat": "cue",
"events":[
{
"cueType": "out", // out | in
"duration": 60500 // milliseconds, only available when cueType is out
}
]
}
POST /v1/vhosts{vhost}/apps/{app}/streams/{stream}:sendEvents
Header
Authorization: Basic {credentials}
# Authorization
Credentials for HTTP Basic Authentication created with <AccessToken>
Body
[
{
"eventFormat": "id3v2",
"eventType": "video", // "eventTarget": "video" is same
"events":[
{
"frameType": "TXXX",
"info": "AirenSoft",
"data": "OvenMediaEngine"
},
{
"frameType": "TIT2",
"data": "OvenMediaEngine 123"
}
]
},
{
"eventFormat": "cue",
"events":[
{
"cueType": "out", // out | in
"duration": 60500 // milliseconds, only available when cueType is out
}
]
}
]
Responses
200 Ok
The request has succeeded
Header
Content-Type: application/json
Body
{
"message": "OK",
"statusCode": 200
}
Last updated