| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410 |
- 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) QueryEditingJobList(request *QueryEditingJobListRequest) (response *QueryEditingJobListResponse, err error) {
- response = CreateQueryEditingJobListResponse()
- err = client.DoAction(request, response)
- return
- }
- func (client *Client) QueryEditingJobListWithChan(request *QueryEditingJobListRequest) (<-chan *QueryEditingJobListResponse, <-chan error) {
- responseChan := make(chan *QueryEditingJobListResponse, 1)
- errChan := make(chan error, 1)
- err := client.AddAsyncTask(func() {
- defer close(responseChan)
- defer close(errChan)
- response, err := client.QueryEditingJobList(request)
- responseChan <- response
- errChan <- err
- })
- if err != nil {
- errChan <- err
- close(responseChan)
- close(errChan)
- }
- return responseChan, errChan
- }
- func (client *Client) QueryEditingJobListWithCallback(request *QueryEditingJobListRequest, callback func(response *QueryEditingJobListResponse, err error)) <-chan int {
- result := make(chan int, 1)
- err := client.AddAsyncTask(func() {
- var response *QueryEditingJobListResponse
- var err error
- defer close(result)
- response, err = client.QueryEditingJobList(request)
- callback(response, err)
- result <- 1
- })
- if err != nil {
- defer close(result)
- callback(nil, err)
- result <- 0
- }
- return result
- }
- type QueryEditingJobListRequest struct {
- *requests.RpcRequest
- ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"`
- ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"`
- JobIds string `position:"Query" name:"JobIds"`
- OwnerAccount string `position:"Query" name:"OwnerAccount"`
- OwnerId requests.Integer `position:"Query" name:"OwnerId"`
- }
- type QueryEditingJobListResponse struct {
- *responses.BaseResponse
- RequestId string `json:"RequestId" xml:"RequestId"`
- NonExistJobIds struct {
- String []string `json:"String" xml:"String"`
- } `json:"NonExistJobIds" xml:"NonExistJobIds"`
- JobList struct {
- Job []struct {
- JobId string `json:"JobId" xml:"JobId"`
- State string `json:"State" xml:"State"`
- Code string `json:"Code" xml:"Code"`
- Message string `json:"Message" xml:"Message"`
- Percent int `json:"Percent" xml:"Percent"`
- PipelineId string `json:"PipelineId" xml:"PipelineId"`
- CreationTime string `json:"CreationTime" xml:"CreationTime"`
- FinishTime string `json:"FinishTime" xml:"FinishTime"`
- EditingConfig struct {
- TemplateId string `json:"TemplateId" xml:"TemplateId"`
- UserData string `json:"UserData" xml:"UserData"`
- Rotate string `json:"Rotate" xml:"Rotate"`
- VideoStreamMap string `json:"VideoStreamMap" xml:"VideoStreamMap"`
- AudioStreamMap string `json:"AudioStreamMap" xml:"AudioStreamMap"`
- DeWatermark string `json:"DeWatermark" xml:"DeWatermark"`
- Priority string `json:"Priority" xml:"Priority"`
- WaterMarkConfigUrl string `json:"WaterMarkConfigUrl" xml:"WaterMarkConfigUrl"`
- MergeConfigUrl string `json:"MergeConfigUrl" xml:"MergeConfigUrl"`
- DigiWaterMark struct {
- Type string `json:"Type" xml:"Type"`
- Alpha string `json:"Alpha" xml:"Alpha"`
- InputFile2 struct {
- Bucket string `json:"Bucket" xml:"Bucket"`
- Location string `json:"Location" xml:"Location"`
- Object string `json:"Object" xml:"Object"`
- } `json:"InputFile" xml:"InputFile"`
- } `json:"DigiWaterMark" xml:"DigiWaterMark"`
- OutputFile struct {
- Bucket string `json:"Bucket" xml:"Bucket"`
- Location string `json:"Location" xml:"Location"`
- Object string `json:"Object" xml:"Object"`
- RoleArn string `json:"RoleArn" xml:"RoleArn"`
- } `json:"OutputFile" xml:"OutputFile"`
- M3U8NonStandardSupport struct {
- TS struct {
- Md5Support bool `json:"Md5Support" xml:"Md5Support"`
- SizeSupport bool `json:"SizeSupport" xml:"SizeSupport"`
- } `json:"TS" xml:"TS"`
- } `json:"M3U8NonStandardSupport" xml:"M3U8NonStandardSupport"`
- Properties struct {
- Width string `json:"Width" xml:"Width"`
- Height string `json:"Height" xml:"Height"`
- Bitrate string `json:"Bitrate" xml:"Bitrate"`
- Duration string `json:"Duration" xml:"Duration"`
- Fps string `json:"Fps" xml:"Fps"`
- FileSize string `json:"FileSize" xml:"FileSize"`
- FileFormat string `json:"FileFormat" xml:"FileFormat"`
- Streams struct {
- VideoStreamList struct {
- VideoStream []struct {
- Index string `json:"Index" xml:"Index"`
- CodecName string `json:"CodecName" xml:"CodecName"`
- CodecLongName string `json:"CodecLongName" xml:"CodecLongName"`
- Profile string `json:"Profile" xml:"Profile"`
- CodecTimeBase string `json:"CodecTimeBase" xml:"CodecTimeBase"`
- CodecTagString string `json:"CodecTagString" xml:"CodecTagString"`
- CodecTag string `json:"CodecTag" xml:"CodecTag"`
- Width string `json:"Width" xml:"Width"`
- Height string `json:"Height" xml:"Height"`
- HasBFrames string `json:"HasBFrames" xml:"HasBFrames"`
- Sar string `json:"Sar" xml:"Sar"`
- Dar string `json:"Dar" xml:"Dar"`
- PixFmt string `json:"PixFmt" xml:"PixFmt"`
- Level string `json:"Level" xml:"Level"`
- Fps string `json:"Fps" xml:"Fps"`
- AvgFPS string `json:"AvgFPS" xml:"AvgFPS"`
- Timebase string `json:"Timebase" xml:"Timebase"`
- StartTime string `json:"StartTime" xml:"StartTime"`
- Duration string `json:"Duration" xml:"Duration"`
- Bitrate string `json:"Bitrate" xml:"Bitrate"`
- NumFrames string `json:"NumFrames" xml:"NumFrames"`
- Lang string `json:"Lang" xml:"Lang"`
- NetworkCost struct {
- PreloadTime string `json:"PreloadTime" xml:"PreloadTime"`
- CostBandwidth string `json:"CostBandwidth" xml:"CostBandwidth"`
- AvgBitrate string `json:"AvgBitrate" xml:"AvgBitrate"`
- } `json:"NetworkCost" xml:"NetworkCost"`
- } `json:"VideoStream" xml:"VideoStream"`
- } `json:"VideoStreamList" xml:"VideoStreamList"`
- AudioStreamList struct {
- AudioStream []struct {
- Index string `json:"Index" xml:"Index"`
- CodecName string `json:"CodecName" xml:"CodecName"`
- CodecTimeBase string `json:"CodecTimeBase" xml:"CodecTimeBase"`
- CodecLongName string `json:"CodecLongName" xml:"CodecLongName"`
- CodecTagString string `json:"CodecTagString" xml:"CodecTagString"`
- CodecTag string `json:"CodecTag" xml:"CodecTag"`
- SampleFmt string `json:"SampleFmt" xml:"SampleFmt"`
- Samplerate string `json:"Samplerate" xml:"Samplerate"`
- Channels string `json:"Channels" xml:"Channels"`
- ChannelLayout string `json:"ChannelLayout" xml:"ChannelLayout"`
- Timebase string `json:"Timebase" xml:"Timebase"`
- StartTime string `json:"StartTime" xml:"StartTime"`
- Duration string `json:"Duration" xml:"Duration"`
- Bitrate string `json:"Bitrate" xml:"Bitrate"`
- NumFrames string `json:"NumFrames" xml:"NumFrames"`
- Lang string `json:"Lang" xml:"Lang"`
- } `json:"AudioStream" xml:"AudioStream"`
- } `json:"AudioStreamList" xml:"AudioStreamList"`
- SubtitleStreamList struct {
- SubtitleStream []struct {
- Index string `json:"Index" xml:"Index"`
- Lang string `json:"Lang" xml:"Lang"`
- } `json:"SubtitleStream" xml:"SubtitleStream"`
- } `json:"SubtitleStreamList" xml:"SubtitleStreamList"`
- } `json:"Streams" xml:"Streams"`
- Format struct {
- NumStreams string `json:"NumStreams" xml:"NumStreams"`
- NumPrograms string `json:"NumPrograms" xml:"NumPrograms"`
- FormatName string `json:"FormatName" xml:"FormatName"`
- FormatLongName string `json:"FormatLongName" xml:"FormatLongName"`
- StartTime string `json:"StartTime" xml:"StartTime"`
- Duration string `json:"Duration" xml:"Duration"`
- Size string `json:"Size" xml:"Size"`
- Bitrate string `json:"Bitrate" xml:"Bitrate"`
- } `json:"Format" xml:"Format"`
- } `json:"Properties" xml:"Properties"`
- Clip struct {
- TimeSpan struct {
- Seek string `json:"Seek" xml:"Seek"`
- Duration string `json:"Duration" xml:"Duration"`
- } `json:"TimeSpan" xml:"TimeSpan"`
- } `json:"Clip" xml:"Clip"`
- SuperReso struct {
- IsHalfSample string `json:"IsHalfSample" xml:"IsHalfSample"`
- } `json:"SuperReso" xml:"SuperReso"`
- SubtitleConfig struct {
- SubtitleList struct {
- Subtitle []struct {
- Map string `json:"Map" xml:"Map"`
- } `json:"Subtitle" xml:"Subtitle"`
- } `json:"SubtitleList" xml:"SubtitleList"`
- ExtSubtitleList struct {
- ExtSubtitle []struct {
- FontName string `json:"FontName" xml:"FontName"`
- CharEnc string `json:"CharEnc" xml:"CharEnc"`
- Input struct {
- Bucket string `json:"Bucket" xml:"Bucket"`
- Location string `json:"Location" xml:"Location"`
- Object string `json:"Object" xml:"Object"`
- } `json:"Input" xml:"Input"`
- } `json:"ExtSubtitle" xml:"ExtSubtitle"`
- } `json:"ExtSubtitleList" xml:"ExtSubtitleList"`
- } `json:"SubtitleConfig" xml:"SubtitleConfig"`
- TransConfig struct {
- TransMode string `json:"TransMode" xml:"TransMode"`
- IsCheckReso string `json:"IsCheckReso" xml:"IsCheckReso"`
- IsCheckResoFail string `json:"IsCheckResoFail" xml:"IsCheckResoFail"`
- IsCheckVideoBitrate string `json:"IsCheckVideoBitrate" xml:"IsCheckVideoBitrate"`
- IsCheckAudioBitrate string `json:"IsCheckAudioBitrate" xml:"IsCheckAudioBitrate"`
- AdjDarMethod string `json:"AdjDarMethod" xml:"AdjDarMethod"`
- IsCheckVideoBitrateFail string `json:"IsCheckVideoBitrateFail" xml:"IsCheckVideoBitrateFail"`
- IsCheckAudioBitrateFail string `json:"IsCheckAudioBitrateFail" xml:"IsCheckAudioBitrateFail"`
- Duration string `json:"Duration" xml:"Duration"`
- } `json:"TransConfig" xml:"TransConfig"`
- MuxConfig struct {
- Segment struct {
- Duration string `json:"Duration" xml:"Duration"`
- } `json:"Segment" xml:"Segment"`
- Gif struct {
- Loop string `json:"Loop" xml:"Loop"`
- FinalDelay string `json:"FinalDelay" xml:"FinalDelay"`
- IsCustomPalette string `json:"IsCustomPalette" xml:"IsCustomPalette"`
- DitherMode string `json:"DitherMode" xml:"DitherMode"`
- } `json:"Gif" xml:"Gif"`
- } `json:"MuxConfig" xml:"MuxConfig"`
- Audio struct {
- Codec string `json:"Codec" xml:"Codec"`
- Profile string `json:"Profile" xml:"Profile"`
- Samplerate string `json:"Samplerate" xml:"Samplerate"`
- Bitrate string `json:"Bitrate" xml:"Bitrate"`
- Channels string `json:"Channels" xml:"Channels"`
- Qscale string `json:"Qscale" xml:"Qscale"`
- Volume struct {
- Level string `json:"Level" xml:"Level"`
- Method string `json:"Method" xml:"Method"`
- } `json:"Volume" xml:"Volume"`
- } `json:"Audio" xml:"Audio"`
- Video struct {
- Codec string `json:"Codec" xml:"Codec"`
- Profile string `json:"Profile" xml:"Profile"`
- Bitrate string `json:"Bitrate" xml:"Bitrate"`
- Crf string `json:"Crf" xml:"Crf"`
- Width string `json:"Width" xml:"Width"`
- Height string `json:"Height" xml:"Height"`
- Fps string `json:"Fps" xml:"Fps"`
- Gop string `json:"Gop" xml:"Gop"`
- Preset string `json:"Preset" xml:"Preset"`
- ScanMode string `json:"ScanMode" xml:"ScanMode"`
- Bufsize string `json:"Bufsize" xml:"Bufsize"`
- Maxrate string `json:"Maxrate" xml:"Maxrate"`
- PixFmt string `json:"PixFmt" xml:"PixFmt"`
- Degrain string `json:"Degrain" xml:"Degrain"`
- Qscale string `json:"Qscale" xml:"Qscale"`
- Crop string `json:"Crop" xml:"Crop"`
- Pad string `json:"Pad" xml:"Pad"`
- MaxFps string `json:"MaxFps" xml:"MaxFps"`
- BitrateBnd struct {
- Max string `json:"Max" xml:"Max"`
- Min string `json:"Min" xml:"Min"`
- } `json:"BitrateBnd" xml:"BitrateBnd"`
- } `json:"Video" xml:"Video"`
- Container struct {
- Format string `json:"Format" xml:"Format"`
- } `json:"Container" xml:"Container"`
- Encryption struct {
- Type string `json:"Type" xml:"Type"`
- Id string `json:"Id" xml:"Id"`
- Key string `json:"Key" xml:"Key"`
- KeyUri string `json:"KeyUri" xml:"KeyUri"`
- KeyType string `json:"KeyType" xml:"KeyType"`
- SkipCnt string `json:"SkipCnt" xml:"SkipCnt"`
- } `json:"Encryption" xml:"Encryption"`
- Editing struct {
- Timeline struct {
- TimelineConfig struct {
- TimelineConfigVideo struct {
- Width string `json:"Width" xml:"Width"`
- Height string `json:"Height" xml:"Height"`
- BgColor string `json:"BgColor" xml:"BgColor"`
- Fps string `json:"Fps" xml:"Fps"`
- } `json:"TimelineConfigVideo" xml:"TimelineConfigVideo"`
- TimelineConfigAudio struct {
- Samplerate string `json:"Samplerate" xml:"Samplerate"`
- ChannelLayout string `json:"ChannelLayout" xml:"ChannelLayout"`
- Channels string `json:"Channels" xml:"Channels"`
- } `json:"TimelineConfigAudio" xml:"TimelineConfigAudio"`
- } `json:"TimelineConfig" xml:"TimelineConfig"`
- TrackList struct {
- Track []struct {
- Id string `json:"Id" xml:"Id"`
- Type string `json:"Type" xml:"Type"`
- Order string `json:"Order" xml:"Order"`
- Clips struct {
- Clip []struct {
- ClipID string `json:"clipID" xml:"clipID"`
- In string `json:"In" xml:"In"`
- Out string `json:"Out" xml:"Out"`
- ClipsConfig struct {
- ClipsConfigVideo struct {
- L string `json:"L" xml:"L"`
- T string `json:"T" xml:"T"`
- } `json:"ClipsConfigVideo" xml:"ClipsConfigVideo"`
- } `json:"ClipsConfig" xml:"ClipsConfig"`
- } `json:"Clip" xml:"Clip"`
- } `json:"Clips" xml:"Clips"`
- } `json:"Track" xml:"Track"`
- } `json:"TrackList" xml:"TrackList"`
- } `json:"Timeline" xml:"Timeline"`
- ClipList struct {
- Clip []struct {
- Id string `json:"Id" xml:"Id"`
- Type string `json:"Type" xml:"Type"`
- SourceType string `json:"SourceType" xml:"SourceType"`
- SourceID string `json:"SourceID" xml:"SourceID"`
- SourceStrmMap string `json:"SourceStrmMap" xml:"SourceStrmMap"`
- In string `json:"In" xml:"In"`
- Out string `json:"Out" xml:"Out"`
- Effects struct {
- Effect []struct {
- Effect string `json:"Effect" xml:"Effect"`
- EffectConfig string `json:"EffectConfig" xml:"EffectConfig"`
- } `json:"Effect" xml:"Effect"`
- } `json:"Effects" xml:"Effects"`
- } `json:"Clip" xml:"Clip"`
- } `json:"ClipList" xml:"ClipList"`
- } `json:"Editing" xml:"Editing"`
- WaterMarkList struct {
- WaterMark []struct {
- WaterMarkTemplateId string `json:"WaterMarkTemplateId" xml:"WaterMarkTemplateId"`
- Width string `json:"Width" xml:"Width"`
- Height string `json:"Height" xml:"Height"`
- Dx string `json:"Dx" xml:"Dx"`
- Dy string `json:"Dy" xml:"Dy"`
- ReferPos string `json:"ReferPos" xml:"ReferPos"`
- Type string `json:"Type" xml:"Type"`
- InputFile1 struct {
- Bucket string `json:"Bucket" xml:"Bucket"`
- Location string `json:"Location" xml:"Location"`
- Object string `json:"Object" xml:"Object"`
- } `json:"InputFile" xml:"InputFile"`
- } `json:"WaterMark" xml:"WaterMark"`
- } `json:"WaterMarkList" xml:"WaterMarkList"`
- MergeList struct {
- Merge []struct {
- MergeURL string `json:"MergeURL" xml:"MergeURL"`
- Start string `json:"Start" xml:"Start"`
- Duration string `json:"Duration" xml:"Duration"`
- RoleArn string `json:"RoleArn" xml:"RoleArn"`
- } `json:"Merge" xml:"Merge"`
- } `json:"MergeList" xml:"MergeList"`
- } `json:"EditingConfig" xml:"EditingConfig"`
- MNSMessageResult struct {
- MessageId string `json:"MessageId" xml:"MessageId"`
- ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"`
- ErrorCode string `json:"ErrorCode" xml:"ErrorCode"`
- } `json:"MNSMessageResult" xml:"MNSMessageResult"`
- EditingInputs struct {
- EditingInput []struct {
- Id string `json:"Id" xml:"Id"`
- InputFile struct {
- Bucket string `json:"Bucket" xml:"Bucket"`
- Location string `json:"Location" xml:"Location"`
- Object string `json:"Object" xml:"Object"`
- } `json:"InputFile" xml:"InputFile"`
- InputConfig struct {
- DeinterlaceMethod string `json:"DeinterlaceMethod" xml:"DeinterlaceMethod"`
- IsNormalSar string `json:"IsNormalSar" xml:"IsNormalSar"`
- } `json:"InputConfig" xml:"InputConfig"`
- } `json:"EditingInput" xml:"EditingInput"`
- } `json:"EditingInputs" xml:"EditingInputs"`
- } `json:"Job" xml:"Job"`
- } `json:"JobList" xml:"JobList"`
- }
- func CreateQueryEditingJobListRequest() (request *QueryEditingJobListRequest) {
- request = &QueryEditingJobListRequest{
- RpcRequest: &requests.RpcRequest{},
- }
- request.InitWithApiInfo("Mts", "2014-06-18", "QueryEditingJobList", "mts", "openAPI")
- return
- }
- func CreateQueryEditingJobListResponse() (response *QueryEditingJobListResponse) {
- response = &QueryEditingJobListResponse{
- BaseResponse: &responses.BaseResponse{},
- }
- return
- }
|