Home / Docs Center / Platform API / Get Playback URL

Get Playback URL

Platform API · Cloud Live API

Project: Platform API | page_id: 1698

Brief Description:

  • Get the playback address for playback

Request URL:
- /product/genLivePushUrl

Request Method:
- POST

Parameters:

Parameter Name Required Type Description
productId Yes string Device ID
channelId Yes int Channel number, starting from 1
expiredSec Yes int64 Expiration end seconds (timestamp from 1970 to the expiration time)

Return Example

{
    "rtmpUrl": "rtmp://volcplay.xstrive.com/iot/0b345b59177da2cab1661a069_1?volcTime=1776332929&volcSecret=2054d7ee2e35fb088eb68f634",
    "flvUrl": "https://volcplay.xstrive.com/iot/0b345b59177da2cab1661a069_1.flv?volcTime=1776332929&volcSecret=2054d7ee2e35fb088eb68f634",
    "hlsUrl": "https://volcplay.xstrive.com/iot/0b345b59177da2cab1661a069_1.m3u8?volcTime=1776332929&volcSecret=2054d7ee2e35fb088eb68f634"
}

Return Parameter Description

Parameter Name Type Description
rtmpUrl string Playback address
flvUrl string Playback address
hlsUrl string Playback address
code int Failure status code, none on success
msg string Failure message, none on success

Remarks

  • The domain name may change, please do not concatenate the playback address yourself.
Didn't find what you need?Contact us,Talk to our engineers directly.

Request a Quote

Fill in the form and we will get back with a quote and proposal within 1 business day.

Click "Generate inquiry email" to open your mail client with the body pre-filled. If no mail client is configured, click "Copy" and paste it into webmail — recipient: sunshiyang@xstrive.com.