Generates a URL for streaming a specific video file in the Media Manager.
To stream different assets of the file, specify the assetKeys
parameter which generates a video streaming URL for each asset. If no assetKey is specified, it defaults to src
, which generates one video streaming URL in the original file's format and quality.
You can only call this method when authenticated as a Wix app or Wix user identity.
URL for streaming a specific file in the Media Manager.
curl -X POST \
'https://www.wixapis.com/site-media/v1/files/generate-video-stream-url' \
-H 'Authorization: <AUTH>'
-H 'Content-Type: application/json' \
--data-binary '{
"fileId": "4acbb8_b1403cfa28c24a8091597de4d2b518b9",
"format": "HLS"
}'
{
"downloadUrl": {
"url": "https://repackager.wixmp.com/video.wixstatic.com/video/4acbb8_b1403cfa28c24a8091597de4d2b518b9/,720p,480p,/mp4/file.mp4.urlset/master.m3u8",
"assetKey": "720p.mp4"
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.