# Function Description
Transform m3u8 file to Meishe m3u8(for SDK playback ),and transcoding m3u8 as well.
# Request
# request example
POST /m3u8Transform/transform HTTPS
Host: <host>
Content-Type: application/json
# Request Headers
none
# Request Body
request body is JSON character string,for example:
{
// url of Live streams, for example by Aliyun-cloud
"originUrl": "https://live.shizhouhu.com/LiveEdit/YYSStream.m3u8?aliyunols=on&lhs_start_unix_s_0=1627474903",
// GOP size of Live streams
"GOPSize": "25",
// record start time of Live
"liveStartTime": "15:04:05",
// custom path(alternative)
"filePrefix": "/mnt/xnewsTY",
// custom host(alternative)
"filePreview": "https://media.smgtech.net:8443/xnewsTY",
// temporary Live resource or not(alternative)
"isTmpM3u8": false
}
note:
1.aliyunols = on // open the function of Aliyun time shifting
2.lhs_start_unix_s_0 = 1627474903 // configurate start time of time shifting(time stamp format)
Field | Type | Explain | Mandatory |
---|---|---|---|
uuid | string | task uuid | true |
type | int | task type,0-transcoding,1-composing | true |
# Response
# Response Header
No special response header
# Response Body
Successful Response Body :
{
"code"
:
0,
"data"
:
{
"originUrl"
:
"https://alieasset.meishesdk.com/m3u8Transform/demo/demo.m3u8",
"uuid"
:
"ec442b7c-7c70-462b-b8ec-9eed17c1b62f"
}
,
"msg"
:
"操作成功" //success
}
{
"code"
:
2,
"data"
:
"",
"msg"
:
"m3u8url has receive"
}
Failed Response Body
{
"code"
:
<errorCode>,
"data": "",
"msg":
<errorMessage>
}