Example getting the video sources for https://watch.revry.tv/player/35033/stream
URL_ID = 35033
- This include the media type (movie/series)
type: stream
is paywall
MEDIA_TYPE = .data.asset.type
- Layout:
https://beacon.playback.api.brightcove.com/revry/api/assets/[URL_ID]?device_type=web&device_layout=web&asset_id=[URL_ID]
- Example: https://beacon.playback.api.brightcove.com/revry/api/assets/35033?device_type=web&device_layout=web&asset_id=35033
STREAM_ID = .data.asset.streams[0].id
= 9747
- The
type
must bestream
and nottrailer
- If it has DRM the
encryption
value wont beopen
- Layout:
https://beacon.playback.api.brightcove.com/revry/api/assets/[URL_ID]/streams/[STREAM_ID]?device_type=web&device_layout=web
- Example: https://beacon.playback.api.brightcove.com/revry/api/assets/35033/streams/9747?device_type=web&device_layout=web
VIDEO_ID = .data.stream.url
= 6250425244001
ACCOUNT_ID = .data.stream.video_provider_details.account_id
= 6122285389001
ADS_VALUE = .data.stream.ads.parameters[0].value
= 23644649-7957-44a1-8a40-cdd4ac2ef7bd
AUTH_KEY = .data.stream.video_provider_details.policy_key
- Layout:
https://edge.api.brightcove.com/playback/v1/accounts/[ACCOUNT_ID]/videos/[VIDEO_ID]?ad_config_id=[ADS_VALUE]
- With header
Accept: application/json;pk=[AUTH_KEY]
Example:
curl 'https://edge.api.brightcove.com/playback/v1/accounts/6122285389001/videos/6250425244001?ad_config_id=23644649-7957-44a1-8a40-cdd4ac2ef7bd' \
-H 'Accept: application/json;pk=BCpkADawqM1Zv6-iG7AM7iMe8KpHTYakNLvss4IkIoRJS9d1X6bcz0wCVP8J6vVPOKGz52R7ED6dIhrk6VjW_cKQPeZE4IGCwXsdfsQt2g_FdgOUhRHegg85b-_Uh9P9n3SdbrSDf55WF71g' \
-H 'Referer: https://watch.revry.tv/' \
| jq .
SOURCES = .sources
- Contains
m3u8
andmpd
playlists & thecontent.vmap
that has the ad placements times
Metadata:
poster = .thumbnail
or .thumbnail_sources[]
banner = .poster
or .posrt_sources[]
title = .name
description = .description
or .long_description