| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187 |
- package mts
- //Licensed under the Apache License, Version 2.0 (the "License");
- //you may not use this file except in compliance with the License.
- //You may obtain a copy of the License at
- //
- //http://www.apache.org/licenses/LICENSE-2.0
- //
- //Unless required by applicable law or agreed to in writing, software
- //distributed under the License is distributed on an "AS IS" BASIS,
- //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- //See the License for the specific language governing permissions and
- //limitations under the License.
- //
- // Code generated by Alibaba Cloud SDK Code Generator.
- // Changes may cause incorrect behavior and will be lost if the code is regenerated.
- import (
- "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
- "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
- )
- func (client *Client) QueryMediaInfoJobList(request *QueryMediaInfoJobListRequest) (response *QueryMediaInfoJobListResponse, err error) {
- response = CreateQueryMediaInfoJobListResponse()
- err = client.DoAction(request, response)
- return
- }
- func (client *Client) QueryMediaInfoJobListWithChan(request *QueryMediaInfoJobListRequest) (<-chan *QueryMediaInfoJobListResponse, <-chan error) {
- responseChan := make(chan *QueryMediaInfoJobListResponse, 1)
- errChan := make(chan error, 1)
- err := client.AddAsyncTask(func() {
- defer close(responseChan)
- defer close(errChan)
- response, err := client.QueryMediaInfoJobList(request)
- responseChan <- response
- errChan <- err
- })
- if err != nil {
- errChan <- err
- close(responseChan)
- close(errChan)
- }
- return responseChan, errChan
- }
- func (client *Client) QueryMediaInfoJobListWithCallback(request *QueryMediaInfoJobListRequest, callback func(response *QueryMediaInfoJobListResponse, err error)) <-chan int {
- result := make(chan int, 1)
- err := client.AddAsyncTask(func() {
- var response *QueryMediaInfoJobListResponse
- var err error
- defer close(result)
- response, err = client.QueryMediaInfoJobList(request)
- callback(response, err)
- result <- 1
- })
- if err != nil {
- defer close(result)
- callback(nil, err)
- result <- 0
- }
- return result
- }
- type QueryMediaInfoJobListRequest struct {
- *requests.RpcRequest
- ResourceOwnerId string `position:"Query" name:"ResourceOwnerId"`
- MediaInfoJobIds string `position:"Query" name:"MediaInfoJobIds"`
- ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"`
- OwnerAccount string `position:"Query" name:"OwnerAccount"`
- Action string `position:"Query" name:"Action"`
- OwnerId string `position:"Query" name:"OwnerId"`
- AccessKeyId string `position:"Query" name:"AccessKeyId"`
- }
- type QueryMediaInfoJobListResponse struct {
- *responses.BaseResponse
- RequestId string `json:"RequestId"`
- NonExistMediaInfoJobIds []string `json:"NonExistMediaInfoJobIds"`
- MediaInfoJobList []struct {
- JobId string `json:"JobId"`
- UserData string `json:"UserData"`
- PipelineId string `json:"PipelineId"`
- State string `json:"State"`
- Code string `json:"Code"`
- Message string `json:"Message"`
- CreationTime string `json:"CreationTime"`
- Input struct {
- Bucket string `json:"Bucket"`
- Location string `json:"Location"`
- Object string `json:"Object"`
- } `json:"Input"`
- Properties struct {
- Width string `json:"Width"`
- Height string `json:"Height"`
- Bitrate string `json:"Bitrate"`
- Duration string `json:"Duration"`
- Fps string `json:"Fps"`
- FileSize string `json:"FileSize"`
- FileFormat string `json:"FileFormat"`
- Streams struct {
- VideoStreamList []struct {
- Index string `json:"Index"`
- CodecName string `json:"CodecName"`
- CodecLongName string `json:"CodecLongName"`
- Profile string `json:"Profile"`
- CodecTimeBase string `json:"CodecTimeBase"`
- CodecTagString string `json:"CodecTagString"`
- CodecTag string `json:"CodecTag"`
- Width string `json:"Width"`
- Height string `json:"Height"`
- HasBFrames string `json:"HasBFrames"`
- Sar string `json:"Sar"`
- Dar string `json:"Dar"`
- PixFmt string `json:"PixFmt"`
- Level string `json:"Level"`
- Fps string `json:"Fps"`
- AvgFPS string `json:"AvgFPS"`
- Timebase string `json:"Timebase"`
- StartTime string `json:"StartTime"`
- Duration string `json:"Duration"`
- Bitrate string `json:"Bitrate"`
- NumFrames string `json:"NumFrames"`
- Lang string `json:"Lang"`
- Rotate string `json:"Rotate"`
- NetworkCost struct {
- PreloadTime string `json:"PreloadTime"`
- CostBandwidth string `json:"CostBandwidth"`
- AvgBitrate string `json:"AvgBitrate"`
- } `json:"NetworkCost"`
- } `json:"VideoStreamList"`
- AudioStreamList []struct {
- Index string `json:"Index"`
- CodecName string `json:"CodecName"`
- CodecTimeBase string `json:"CodecTimeBase"`
- CodecLongName string `json:"CodecLongName"`
- CodecTagString string `json:"CodecTagString"`
- CodecTag string `json:"CodecTag"`
- SampleFmt string `json:"SampleFmt"`
- Samplerate string `json:"Samplerate"`
- Channels string `json:"Channels"`
- ChannelLayout string `json:"ChannelLayout"`
- Timebase string `json:"Timebase"`
- StartTime string `json:"StartTime"`
- Duration string `json:"Duration"`
- Bitrate string `json:"Bitrate"`
- NumFrames string `json:"NumFrames"`
- Lang string `json:"Lang"`
- } `json:"AudioStreamList"`
- SubtitleStreamList []struct {
- Index string `json:"Index"`
- Lang string `json:"Lang"`
- } `json:"SubtitleStreamList"`
- } `json:"Streams"`
- Format struct {
- NumStreams string `json:"NumStreams"`
- NumPrograms string `json:"NumPrograms"`
- FormatName string `json:"FormatName"`
- FormatLongName string `json:"FormatLongName"`
- StartTime string `json:"StartTime"`
- Duration string `json:"Duration"`
- Size string `json:"Size"`
- Bitrate string `json:"Bitrate"`
- } `json:"Format"`
- } `json:"Properties"`
- MNSMessageResult struct {
- MessageId string `json:"MessageId"`
- ErrorMessage string `json:"ErrorMessage"`
- ErrorCode string `json:"ErrorCode"`
- } `json:"MNSMessageResult"`
- } `json:"MediaInfoJobList"`
- }
- func CreateQueryMediaInfoJobListRequest() (request *QueryMediaInfoJobListRequest) {
- request = &QueryMediaInfoJobListRequest{
- RpcRequest: &requests.RpcRequest{},
- }
- request.InitWithApiInfo("Mts", "2014-06-18", "QueryMediaInfoJobList", "", "")
- return
- }
- func CreateQueryMediaInfoJobListResponse() (response *QueryMediaInfoJobListResponse) {
- response = &QueryMediaInfoJobListResponse{
- BaseResponse: &responses.BaseResponse{},
- }
- return
- }
|