POST
/
media
/
detect
curl --request POST \
--url http://api.dsm.whdiyo.com/api/v1/media/detect \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '"{ \"streamUrl\": \"https://cdn.bitmovin.com/content/assets/art-of-motion-dash-hls-progressive/mpds/f08e80da-bf1d-4e3d-8899-f0f6155f6efa.mpd\" }"'
{
"streamUrl": "https://cdn.bitmovin.com/content/assets/art-of-motion-dash-hls-progressive/mpds/f08e80da-bf1d-4e3d-8899-f0f6155f6efa.mpd",
"duration": 210,
"segmentDuration": 4,
"timescale": 25000,
"format": "dash"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json · any

The body is of type any.

Response

success response

Media stream detected parameters type

streamUrl
string

The request stream url for detect

format
enum<string>

The media type dash or hls

Available options:
dash,
hls
duration
number

float

segmentDuration
number

float

timescale
integer

int64

drm
boolean

The DRM media have DRM protection

kid
string

The DRM media KID

pssh
string

The DRM media MPEG-CENC (Widevine) PSSH box. DASH only

licenseUrl
string

The DRM media license URL. DASH only