Documentation
¶
Index ¶
- Constants
- func CreateRecordAPI(uri StreamURI, start, end time.Time, oss aliyun.OSS) aliyun.API
- func DescribeRecordContentAPI(uri StreamURI, start, end time.Time) aliyun.API
- func DescribeRecordsAPI(uri StreamURI, start, end time.Time) aliyun.API
- type CreateRecordResponse
- type DescribeContentResponse
- type DescribeRecordsResponse
- type RecordContent
- type RecordInfo
- type StreamURI
Constants ¶
const ( Host = "https://live.aliyuncs.com" Ver = "2016-11-01" )
API constants
Variables ¶
This section is empty.
Functions ¶
func CreateRecordAPI ¶
CreateRecordAPI returns the API for CreateLiveStreamRecordIndexFiles. https://help.aliyun.com/document_detail/35417.html
func DescribeRecordContentAPI ¶ added in v0.0.3
DescribeRecordContentAPI returns the API for DescribeLiveStreamRecordContent. https://help.aliyun.com/document_detail/35421.html.
func DescribeRecordsAPI ¶
DescribeRecordsAPI returns the API for DescribeLiveStreamRecordIndexFiles. https://help.aliyun.com/document_detail/35423.html
Types ¶
type CreateRecordResponse ¶
type CreateRecordResponse struct {
Info RecordInfo `json:"RecordInfo"`
RequestID string `json:"RequestId"`
}
A CreateRecordResponse is the response for CreateLiveStreamRecordIndexFiles.
type DescribeContentResponse ¶ added in v0.0.3
type DescribeContentResponse struct {
RequestID string `json:"RequestId"`
RecordContentInfoList struct {
RecordContentInfo []RecordContent `json:"RecordContentInfo"`
} `json:"RecordContentInfoList"`
}
DescribeContentResponse is the response for DescribeLiveStreamRecordContent.
func DescribeRecordContent ¶ added in v0.0.3
func DescribeRecordContent(s aliyun.Signer, uri StreamURI, start, end time.Time) (resp DescribeContentResponse, err error)
DescribeRecordContent uses the signer to send a DescribeRecordsAPI.
type DescribeRecordsResponse ¶
type DescribeRecordsResponse struct {
List struct {
Files []RecordInfo `json:"RecordIndexInfo"`
} `json:"RecordIndexInfoList"`
RequestID string `json:"RequestId"`
}
A DescribeRecordsResponse is the response for DescribeLiveStreamRecordIndexFiles.
func DescribeRecords ¶
func DescribeRecords(s aliyun.Signer, uri StreamURI, start, end time.Time) (resp DescribeRecordsResponse, err error)
DescribeRecords uses the signer to send a DescribeRecordsAPI.
type RecordContent ¶ added in v0.0.3
type RecordContent struct {
Duration float64 `json:"Duration"`
OssEndpoint string `json:"OssEndpoint"`
EndTime time.Time `json:"EndTime"`
StartTime time.Time `json:"StartTime"`
OssObjectPrefix string `json:"OssObjectPrefix"`
OssBucket string `json:"OssBucket"`
}
A RecordContent represents the content of a period of record.
type RecordInfo ¶
type RecordInfo struct {
RecordID string `json:"RecordId"`
RecordURL string `json:"RecordUrl"`
// timestamps
CreateTime time.Time `json:"CreateTime"`
StartTime time.Time `json:"StartTime"`
EndTime time.Time `json:"EndTime"`
// video related
Duration float64 `json:"Duration"`
Width int `json:"Width"`
Height int `json:"Height"`
// embedded
StreamURI
aliyun.OSS
}
A RecordInfo represents the a live stream record.