tencentcloud-sdk-cme 3.0.536 → 3.0.537

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b7fb8ab599606a1e626b7848b60145ed31f8437b
4
- data.tar.gz: 4559719c1f086e7e3a6a94ac09a33bbbde234825
3
+ metadata.gz: 17ee54e01dea7f43f291c1a7562b6f9ff45d5b12
4
+ data.tar.gz: 82b86d5bc758c9da9a2a92966e4fb60891042552
5
5
  SHA512:
6
- metadata.gz: f099b8d38b9b0e9a95b29d1161281d58b5ca93172b8a3b9167230c2ce0ab65b9d53dc7744c149538ecb21c430805c6006ab7a1a5a3eba7b810e4b5a6932b96c5
7
- data.tar.gz: 84f491aa20b8803bb9577b39b102263cb966c70c24f54e063b4e32a4ff577367c621a1cb24848ac66ef9e00f5c35583faec82da07a3322a9dd0dacd1508159f8
6
+ metadata.gz: 782bad045f53396e0682835bdf6965c232a698feb72546d01a055a3dcc17ac6befb880d3adb37f3de4ff242fa3f6de6d83e38493af380d61875f8e77383722fc
7
+ data.tar.gz: 6f7d8e832c21f8303bc44dc62056db1aeb880f2412d088c69811388c188e1e2f0e1ad70539fd180c372cdf652bc5cf434dbc376c2f3c6d900f20ab82ccf0d713
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.536
1
+ 3.0.537
@@ -101,7 +101,7 @@ module TencentCloud
101
101
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
102
  end
103
103
 
104
- # 创建媒体链接或分类路径链接,将源资源信息链接到目标。
104
+ # 创建媒体链接或分类路径链接,将源资源信息链接到目标。
105
105
 
106
106
  # @param request: Request instance for CreateLink.
107
107
  # @type request: :class:`Tencentcloud::cme::V20191029::CreateLinkRequest`
@@ -132,6 +132,7 @@ module TencentCloud
132
132
  # <li>视频拆条:用于视频拆条;</li>
133
133
  # <li>录制回放项目:用于直播录制回放;</li>
134
134
  # <li>云转推项目:用于直播云转推。</li>
135
+ # <li>点播转直播项目:用于点播文件转直播输出。</li>
135
136
 
136
137
  # @param request: Request instance for CreateProject.
137
138
  # @type request: :class:`Tencentcloud::cme::V20191029::CreateProjectRequest`
@@ -277,7 +278,7 @@ module TencentCloud
277
278
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
278
279
  end
279
280
 
280
- # 删除项目。
281
+ # 删除项目。处于推流状态的云转推和点播转直播项目不允许删除,若强行调用删除项目接口会返回失败。
281
282
 
282
283
  # @param request: Request instance for DeleteProject.
283
284
  # @type request: :class:`Tencentcloud::cme::V20191029::DeleteProjectRequest`
@@ -887,6 +888,44 @@ module TencentCloud
887
888
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
888
889
  end
889
890
 
891
+ # 对点播转直播项目进行操作。
892
+ # ### 操作类型<a id="Operation"></a>
893
+ # - `AddSource`(添加输入源),项目状态为 Idle、Working 时均可以操作。参见 [示例](#.E7.A4.BA.E4.BE.8B12-.E6.B7.BB.E5.8A.A0.E8.BE.93.E5.85.A5.E6.BA.90);
894
+ # - `DeleteSource`(删除输入源),项目状态为 Idle、Working 时均可以操作。参见 [示例](#.E7.A4.BA.E4.BE.8B7-.E5.88.A0.E9.99.A4.E8.BE.93.E5.85.A5.E6.BA.90);
895
+ # - `SwitchSource`(切换当前播放的输入源),项目状态为 Working 时可以操作。参见 [示例](#.E7.A4.BA.E4.BE.8B6-.E5.88.87.E6.8D.A2.E5.BD.93.E5.89.8D.E6.92.AD.E6.94.BE.E7.9A.84.E8.BE.93.E5.85.A5.E6.BA.90)
896
+ # - `AddDestination`( 添加输出源),项目状态为 Idle、Working 时均可以操作。参见 [示例](#.E7.A4.BA.E4.BE.8B13-.E6.B7.BB.E5.8A.A0.E8.BE.93.E5.87.BA.E6.BA.90);
897
+ # - `DeleteDestination`(删除输出源),项目状态为 Idle、Working 时均可以操作。参见 [示例](#.E7.A4.BA.E4.BE.8B8-.E5.88.A0.E9.99.A4.E8.BE.93.E5.87.BA.E6.BA.90);
898
+ # - `EnableDestination`(启动输出源),项目状态为 Working 时可以操作。参见 [示例](#.E7.A4.BA.E4.BE.8B10-.E5.90.AF.E5.8A.A8.E8.BE.93.E5.87.BA.E6.BA.90);
899
+ # - `DisableDestination`(停止输出源),项目状态为 Working 时可以操作。参见 [示例](#.E7.A4.BA.E4.BE.8B5-.E5.81.9C.E6.AD.A2.E8.BE.93.E5.87.BA.E6.BA.90);
900
+ # - `ModifyDestination`(修改输出源),项目状态为 Idle、Working 时均可以操作。参见 [示例](#.E7.A4.BA.E4.BE.8B2-.E4.BF.AE.E6.94.B9.E8.BE.93.E5.87.BA.E6.BA.90);
901
+ # - `Start`(启动点播转直播),项目状态为 Idle 时可以操作。参见 [示例](#.E7.A4.BA.E4.BE.8B9-.E5.90.AF.E5.8A.A8.E7.82.B9.E6.92.AD.E8.BD.AC.E7.9B.B4.E6.92.AD);
902
+ # - `Stop`(停止点播转直播),项目状态为 Working 时可以操作。参见 [示例](#.E7.A4.BA.E4.BE.8B4-.E5.81.9C.E6.AD.A2.E7.82.B9.E6.92.AD.E8.BD.AC.E7.9B.B4.E6.92.AD);
903
+ # - `ModifyOutputMediaSetting`(修改媒体输出配置),项目状态为 Idle 时可以操作。参见 [示例](#.E7.A4.BA.E4.BE.8B3-.E4.BF.AE.E6.94.B9.E8.BE.93.E5.87.BA.E7.9A.84.E5.AA.92.E4.BD.93.E9.85.8D.E7.BD.AE);
904
+ # - `ModifyPlaySetting`(修改播放结束时间),项目状态为 Idle、Working 时均可以操作。参见 [示例](#.E7.A4.BA.E4.BE.8B1-.E4.BF.AE.E6.94.B9.E7.BB.93.E6.9D.9F.E6.97.B6.E9.97.B4);
905
+ # - `DescribePlayInfo`(查询播放信息),项目状态为 Idle、Working 时均可以操作。参见 [示例](#.E7.A4.BA.E4.BE.8B11-.E6.9F.A5.E8.AF.A2.E7.82.B9.E6.92.AD.E8.BD.AC.E7.9B.B4.E6.92.AD.E9.A1.B9.E7.9B.AE.E7.9A.84.E6.92.AD.E6.94.BE.E4.BF.A1.E6.81.AF)。
906
+
907
+ # @param request: Request instance for HandleMediaCastProject.
908
+ # @type request: :class:`Tencentcloud::cme::V20191029::HandleMediaCastProjectRequest`
909
+ # @rtype: :class:`Tencentcloud::cme::V20191029::HandleMediaCastProjectResponse`
910
+ def HandleMediaCastProject(request)
911
+ body = send_request('HandleMediaCastProject', request.serialize)
912
+ response = JSON.parse(body)
913
+ if response['Response'].key?('Error') == false
914
+ model = HandleMediaCastProjectResponse.new
915
+ model.deserialize(response['Response'])
916
+ model
917
+ else
918
+ code = response['Response']['Error']['Code']
919
+ message = response['Response']['Error']['Message']
920
+ reqid = response['Response']['RequestId']
921
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
922
+ end
923
+ rescue TencentCloud::Common::TencentCloudSDKException => e
924
+ raise e
925
+ rescue StandardError => e
926
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
927
+ end
928
+
890
929
  # 对云转推项目进行操作。
891
930
  # ### 操作类型<a id="Operation"></a>
892
931
  # - `AddInput`(添加输入源),包括:
@@ -974,7 +1013,7 @@ module TencentCloud
974
1013
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
975
1014
  end
976
1015
 
977
- # 浏览当前分类路径下的资源,包括媒体文件和子分类,返回媒资基础信息和分类信息。
1016
+ # 浏览当前分类路径下的资源,包括媒体文件和子分类,返回媒资基础信息和分类信息。
978
1017
 
979
1018
  # @param request: Request instance for ListMedia.
980
1019
  # @type request: :class:`Tencentcloud::cme::V20191029::ListMediaRequest`
@@ -1175,7 +1214,7 @@ module TencentCloud
1175
1214
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1176
1215
  end
1177
1216
 
1178
- # 该接口接受制作云回调给客户的事件内容,将其转化为对应的 EventContent 结构,请不要实际调用该接口,只需要将接收到的事件内容直接使用 JSON 解析到 EventContent 即可使用。
1217
+ # 该接口接受多媒体创作引擎回调给业务的事件内容,将其转化为对应的 EventContent 结构。请不要实际调用该接口,只需要将接收到的事件内容直接使用 JSON 解析到 EventContent 结构即可使用。
1179
1218
 
1180
1219
  # @param request: Request instance for ParseEvent.
1181
1220
  # @type request: :class:`Tencentcloud::cme::V20191029::ParseEventRequest`
@@ -651,6 +651,7 @@ module TencentCloud
651
651
  # <li>VIDEO_SEGMENTATION:视频拆条。</li>
652
652
  # <li>STREAM_CONNECT:云转推。</li>
653
653
  # <li>RECORD_REPLAY:录制回放。</li>
654
+ # <li>MEDIA_CAST:点播转直播。</li>
654
655
  # @type Category: String
655
656
  # @param Mode: 项目模式,一个项目可以有多种模式并相互切换。
656
657
  # 当 Category 为 VIDEO_EDIT 时,可选模式有:
@@ -676,10 +677,12 @@ module TencentCloud
676
677
  # @type StreamConnectProjectInput: :class:`Tencentcloud::Cme.v20191029.models.StreamConnectProjectInput`
677
678
  # @param RecordReplayProjectInput: 录制回放项目输入信息,仅当项目类型为 RECORD_REPLAY 时必填。
678
679
  # @type RecordReplayProjectInput: :class:`Tencentcloud::Cme.v20191029.models.RecordReplayProjectInput`
680
+ # @param MediaCastProjectInput: 点播转直播项目输入信息,仅当项目类型为 MEDIA_CAST 时必填。
681
+ # @type MediaCastProjectInput: :class:`Tencentcloud::Cme.v20191029.models.MediaCastProjectInput`
679
682
 
680
- attr_accessor :Platform, :Name, :Owner, :Category, :Mode, :AspectRatio, :Description, :SwitcherProjectInput, :LiveStreamClipProjectInput, :VideoEditProjectInput, :VideoSegmentationProjectInput, :StreamConnectProjectInput, :RecordReplayProjectInput
683
+ attr_accessor :Platform, :Name, :Owner, :Category, :Mode, :AspectRatio, :Description, :SwitcherProjectInput, :LiveStreamClipProjectInput, :VideoEditProjectInput, :VideoSegmentationProjectInput, :StreamConnectProjectInput, :RecordReplayProjectInput, :MediaCastProjectInput
681
684
 
682
- def initialize(platform=nil, name=nil, owner=nil, category=nil, mode=nil, aspectratio=nil, description=nil, switcherprojectinput=nil, livestreamclipprojectinput=nil, videoeditprojectinput=nil, videosegmentationprojectinput=nil, streamconnectprojectinput=nil, recordreplayprojectinput=nil)
685
+ def initialize(platform=nil, name=nil, owner=nil, category=nil, mode=nil, aspectratio=nil, description=nil, switcherprojectinput=nil, livestreamclipprojectinput=nil, videoeditprojectinput=nil, videosegmentationprojectinput=nil, streamconnectprojectinput=nil, recordreplayprojectinput=nil, mediacastprojectinput=nil)
683
686
  @Platform = platform
684
687
  @Name = name
685
688
  @Owner = owner
@@ -693,6 +696,7 @@ module TencentCloud
693
696
  @VideoSegmentationProjectInput = videosegmentationprojectinput
694
697
  @StreamConnectProjectInput = streamconnectprojectinput
695
698
  @RecordReplayProjectInput = recordreplayprojectinput
699
+ @MediaCastProjectInput = mediacastprojectinput
696
700
  end
697
701
 
698
702
  def deserialize(params)
@@ -730,6 +734,10 @@ module TencentCloud
730
734
  @RecordReplayProjectInput = RecordReplayProjectInput.new
731
735
  @RecordReplayProjectInput.deserialize(params['RecordReplayProjectInput'])
732
736
  end
737
+ unless params['MediaCastProjectInput'].nil?
738
+ @MediaCastProjectInput = MediaCastProjectInput.new
739
+ @MediaCastProjectInput.deserialize(params['MediaCastProjectInput'])
740
+ end
733
741
  end
734
742
  end
735
743
 
@@ -1526,6 +1534,7 @@ module TencentCloud
1526
1534
  # <li>VIDEO_SEGMENTATION:视频拆条。</li>
1527
1535
  # <li>STREAM_CONNECT:云转推。</li>
1528
1536
  # <li>RECORD_REPLAY:录制回放。</li>
1537
+ # <li>MEDIA_CAST:点播转直播。</li>
1529
1538
 
1530
1539
  # 注:如果不填则不使用项目类型进行过滤。
1531
1540
  # @type CategorySet: Array
@@ -2791,6 +2800,127 @@ module TencentCloud
2791
2800
  end
2792
2801
  end
2793
2802
 
2803
+ # HandleMediaCastProject请求参数结构体
2804
+ class HandleMediaCastProjectRequest < TencentCloud::Common::AbstractModel
2805
+ # @param Platform: 平台 Id,指定访问的平台。关于平台概念,请参见文档 [平台](https://cloud.tencent.com/document/product/1156/43767)。
2806
+ # @type Platform: String
2807
+ # @param ProjectId: 点播转直播项目 Id 。
2808
+ # @type ProjectId: String
2809
+ # @param Operation: 请参考 [操作类型](#Operation)。
2810
+ # @type Operation: String
2811
+ # @param SourceInfos: 输入源信息。具体操作方式详见 [操作类型](#Operation) 及下文示例。
2812
+ # 当 Operation 为 AddSource、DeleteSource、SwitchSource 时必填。
2813
+ # @type SourceInfos: Array
2814
+ # @param DestinationInfos: 输出源信息。具体操作方式详见 [操作类型](#Operation) 及下文示例。
2815
+ # 当 Operation 为 AddDestination、DeleteDestination、EnableDestination、DisableDestination、ModifyDestination 时必填。
2816
+ # @type DestinationInfos: Array
2817
+ # @param OutputMediaSetting: 输出媒体配置。具体操作方式详见 [操作类型](#Operation) 及下文示例。
2818
+ # 当 Operation 为 ModfiyOutputSetting 时必填。
2819
+ # @type OutputMediaSetting: :class:`Tencentcloud::Cme.v20191029.models.MediaCastOutputMediaSetting`
2820
+ # @param PlaySetting: 播放控制参数。具体操作方式详见 [操作类型](#Operation) 及下文示例。
2821
+ # 当 Operation 为 ModifyPlaySetting 时必填。
2822
+ # @type PlaySetting: :class:`Tencentcloud::Cme.v20191029.models.MediaCastPlaySetting`
2823
+ # @param Position: 新添加的输入源位于输入源列表的位置,从0开始。默认加在输入源列表的后面。具体操作方式详见 [操作类型](#Operation) 及下文示例。
2824
+ # 当 Operation 为 AddSource 时必填。
2825
+ # @type Position: Integer
2826
+ # @param Operator: 操作者。如不填,默认为 `cmeid_system`,表示平台管理员操作,可以操作所有点播转直播项目。如果指定操作者,则操作者必须为项目所有者。
2827
+ # @type Operator: String
2828
+
2829
+ attr_accessor :Platform, :ProjectId, :Operation, :SourceInfos, :DestinationInfos, :OutputMediaSetting, :PlaySetting, :Position, :Operator
2830
+
2831
+ def initialize(platform=nil, projectid=nil, operation=nil, sourceinfos=nil, destinationinfos=nil, outputmediasetting=nil, playsetting=nil, position=nil, operator=nil)
2832
+ @Platform = platform
2833
+ @ProjectId = projectid
2834
+ @Operation = operation
2835
+ @SourceInfos = sourceinfos
2836
+ @DestinationInfos = destinationinfos
2837
+ @OutputMediaSetting = outputmediasetting
2838
+ @PlaySetting = playsetting
2839
+ @Position = position
2840
+ @Operator = operator
2841
+ end
2842
+
2843
+ def deserialize(params)
2844
+ @Platform = params['Platform']
2845
+ @ProjectId = params['ProjectId']
2846
+ @Operation = params['Operation']
2847
+ unless params['SourceInfos'].nil?
2848
+ @SourceInfos = []
2849
+ params['SourceInfos'].each do |i|
2850
+ mediacastsourceinfo_tmp = MediaCastSourceInfo.new
2851
+ mediacastsourceinfo_tmp.deserialize(i)
2852
+ @SourceInfos << mediacastsourceinfo_tmp
2853
+ end
2854
+ end
2855
+ unless params['DestinationInfos'].nil?
2856
+ @DestinationInfos = []
2857
+ params['DestinationInfos'].each do |i|
2858
+ mediacastdestinationinfo_tmp = MediaCastDestinationInfo.new
2859
+ mediacastdestinationinfo_tmp.deserialize(i)
2860
+ @DestinationInfos << mediacastdestinationinfo_tmp
2861
+ end
2862
+ end
2863
+ unless params['OutputMediaSetting'].nil?
2864
+ @OutputMediaSetting = MediaCastOutputMediaSetting.new
2865
+ @OutputMediaSetting.deserialize(params['OutputMediaSetting'])
2866
+ end
2867
+ unless params['PlaySetting'].nil?
2868
+ @PlaySetting = MediaCastPlaySetting.new
2869
+ @PlaySetting.deserialize(params['PlaySetting'])
2870
+ end
2871
+ @Position = params['Position']
2872
+ @Operator = params['Operator']
2873
+ end
2874
+ end
2875
+
2876
+ # HandleMediaCastProject返回参数结构体
2877
+ class HandleMediaCastProjectResponse < TencentCloud::Common::AbstractModel
2878
+ # @param PlayInfo: 播放信息,Operation 为 DescribePlayInfo 时返回。
2879
+ # 注意:此字段可能返回 null,表示取不到有效值。
2880
+ # @type PlayInfo: :class:`Tencentcloud::Cme.v20191029.models.MediaCastPlayInfo`
2881
+ # @param SourceInfoSet: 输入源信息, Operation 为 AddSource 时返回添加成功的输入源信息。
2882
+ # 注意:此字段可能返回 null,表示取不到有效值。
2883
+ # @type SourceInfoSet: Array
2884
+ # @param DestinationInfoSet: 输出源信息, Operation 为 AddDestination 时返回添加成功的输出源信息。
2885
+ # 注意:此字段可能返回 null,表示取不到有效值。
2886
+ # @type DestinationInfoSet: Array
2887
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2888
+ # @type RequestId: String
2889
+
2890
+ attr_accessor :PlayInfo, :SourceInfoSet, :DestinationInfoSet, :RequestId
2891
+
2892
+ def initialize(playinfo=nil, sourceinfoset=nil, destinationinfoset=nil, requestid=nil)
2893
+ @PlayInfo = playinfo
2894
+ @SourceInfoSet = sourceinfoset
2895
+ @DestinationInfoSet = destinationinfoset
2896
+ @RequestId = requestid
2897
+ end
2898
+
2899
+ def deserialize(params)
2900
+ unless params['PlayInfo'].nil?
2901
+ @PlayInfo = MediaCastPlayInfo.new
2902
+ @PlayInfo.deserialize(params['PlayInfo'])
2903
+ end
2904
+ unless params['SourceInfoSet'].nil?
2905
+ @SourceInfoSet = []
2906
+ params['SourceInfoSet'].each do |i|
2907
+ mediacastsourceinfo_tmp = MediaCastSourceInfo.new
2908
+ mediacastsourceinfo_tmp.deserialize(i)
2909
+ @SourceInfoSet << mediacastsourceinfo_tmp
2910
+ end
2911
+ end
2912
+ unless params['DestinationInfoSet'].nil?
2913
+ @DestinationInfoSet = []
2914
+ params['DestinationInfoSet'].each do |i|
2915
+ mediacastdestinationinfo_tmp = MediaCastDestinationInfo.new
2916
+ mediacastdestinationinfo_tmp.deserialize(i)
2917
+ @DestinationInfoSet << mediacastdestinationinfo_tmp
2918
+ end
2919
+ end
2920
+ @RequestId = params['RequestId']
2921
+ end
2922
+ end
2923
+
2794
2924
  # HandleStreamConnectProject请求参数结构体
2795
2925
  class HandleStreamConnectProjectRequest < TencentCloud::Common::AbstractModel
2796
2926
  # @param Platform: 平台 Id,指定访问的平台。关于平台概念,请参见文档 [平台](https://cloud.tencent.com/document/product/1156/43767)。
@@ -3713,25 +3843,25 @@ module TencentCloud
3713
3843
 
3714
3844
  # 点播转直播输出信息。
3715
3845
  class MediaCastDestinationInfo < TencentCloud::Common::AbstractModel
3716
- # @param Index: 输出源序号。由系统进行分配。
3717
- # @type Index: Integer
3718
- # @param Name: 输出源的名称。
3719
- # @type Name: String
3846
+ # @param Id: 输出源 Id。由系统进行分配。
3847
+ # @type Id: String
3720
3848
  # @param PushUrl: 输出直播流地址。支持的直播流类型为 RTMP 和 SRT。
3721
3849
  # @type PushUrl: String
3850
+ # @param Name: 输出源的名称。
3851
+ # @type Name: String
3722
3852
 
3723
- attr_accessor :Index, :Name, :PushUrl
3853
+ attr_accessor :Id, :PushUrl, :Name
3724
3854
 
3725
- def initialize(index=nil, name=nil, pushurl=nil)
3726
- @Index = index
3727
- @Name = name
3855
+ def initialize(id=nil, pushurl=nil, name=nil)
3856
+ @Id = id
3728
3857
  @PushUrl = pushurl
3858
+ @Name = name
3729
3859
  end
3730
3860
 
3731
3861
  def deserialize(params)
3732
- @Index = params['Index']
3733
- @Name = params['Name']
3862
+ @Id = params['Id']
3734
3863
  @PushUrl = params['PushUrl']
3864
+ @Name = params['Name']
3735
3865
  end
3736
3866
  end
3737
3867
 
@@ -3760,6 +3890,33 @@ module TencentCloud
3760
3890
  end
3761
3891
  end
3762
3892
 
3893
+ # 点播转直播输出源状态信息。
3894
+ class MediaCastDestinationStatus < TencentCloud::Common::AbstractModel
3895
+ # @param Id: 输出源 Id,由系统分配。
3896
+ # @type Id: String
3897
+ # @param PushUrl: 输出源直播地址。
3898
+ # @type PushUrl: String
3899
+ # @param Status: 输出源的状态。取值有:
3900
+ # <li> Working :运行中;</li>
3901
+ # <li> Stopped:停止输出;</li>
3902
+ # <li> Failed:输出失败。</li>
3903
+ # @type Status: String
3904
+
3905
+ attr_accessor :Id, :PushUrl, :Status
3906
+
3907
+ def initialize(id=nil, pushurl=nil, status=nil)
3908
+ @Id = id
3909
+ @PushUrl = pushurl
3910
+ @Status = status
3911
+ end
3912
+
3913
+ def deserialize(params)
3914
+ @Id = params['Id']
3915
+ @PushUrl = params['PushUrl']
3916
+ @Status = params['Status']
3917
+ end
3918
+ end
3919
+
3763
3920
  # 点播转直播输出媒体配置。
3764
3921
  class MediaCastOutputMediaSetting < TencentCloud::Common::AbstractModel
3765
3922
  # @param VideoSetting: 视频配置。
@@ -3779,6 +3936,51 @@ module TencentCloud
3779
3936
  end
3780
3937
  end
3781
3938
 
3939
+ # 点播转直播播放信息。
3940
+ class MediaCastPlayInfo < TencentCloud::Common::AbstractModel
3941
+ # @param Status: 点播转直播项目运行状态,取值有:
3942
+ # <li> Working : 运行中;</li>
3943
+ # <li> Idle: 空闲状态。</li>
3944
+ # @type Status: String
3945
+ # @param CurrentSourceId: 当前播放的输入源 Id。
3946
+ # @type CurrentSourceId: String
3947
+ # @param CurrentSourcePosition: 当前播放的输入源的播放位置,单位:秒。
3948
+ # @type CurrentSourcePosition: Float
3949
+ # @param CurrentSourceDuration: 当前播放的输入源时长,单位:秒。
3950
+ # @type CurrentSourceDuration: Float
3951
+ # @param DestinationStatusSet: 输出源状态信息。
3952
+ # @type DestinationStatusSet: Array
3953
+ # @param LoopCount: 已经循环播放的次数。
3954
+ # @type LoopCount: Integer
3955
+
3956
+ attr_accessor :Status, :CurrentSourceId, :CurrentSourcePosition, :CurrentSourceDuration, :DestinationStatusSet, :LoopCount
3957
+
3958
+ def initialize(status=nil, currentsourceid=nil, currentsourceposition=nil, currentsourceduration=nil, destinationstatusset=nil, loopcount=nil)
3959
+ @Status = status
3960
+ @CurrentSourceId = currentsourceid
3961
+ @CurrentSourcePosition = currentsourceposition
3962
+ @CurrentSourceDuration = currentsourceduration
3963
+ @DestinationStatusSet = destinationstatusset
3964
+ @LoopCount = loopcount
3965
+ end
3966
+
3967
+ def deserialize(params)
3968
+ @Status = params['Status']
3969
+ @CurrentSourceId = params['CurrentSourceId']
3970
+ @CurrentSourcePosition = params['CurrentSourcePosition']
3971
+ @CurrentSourceDuration = params['CurrentSourceDuration']
3972
+ unless params['DestinationStatusSet'].nil?
3973
+ @DestinationStatusSet = []
3974
+ params['DestinationStatusSet'].each do |i|
3975
+ mediacastdestinationstatus_tmp = MediaCastDestinationStatus.new
3976
+ mediacastdestinationstatus_tmp.deserialize(i)
3977
+ @DestinationStatusSet << mediacastdestinationstatus_tmp
3978
+ end
3979
+ end
3980
+ @LoopCount = params['LoopCount']
3981
+ end
3982
+ end
3983
+
3782
3984
  # 播放控制参数。
3783
3985
  class MediaCastPlaySetting < TencentCloud::Common::AbstractModel
3784
3986
  # @param LoopCount: 循环播放次数。LoopCount 和 EndTime 同时只能有一个生效。默认循环播放次数为一次。如果同时设置了 LoopCount 和 EndTime 参数,优先使用 LoopCount 参数。
@@ -3861,33 +4063,82 @@ module TencentCloud
3861
4063
  end
3862
4064
  end
3863
4065
 
4066
+ # 点播转直播项目输入信息。
4067
+ class MediaCastProjectInput < TencentCloud::Common::AbstractModel
4068
+ # @param SourceInfos: 输入源列表。输入源列表最大个数为100.
4069
+ # @type SourceInfos: Array
4070
+ # @param DestinationInfos: 输出源列表。输出源列表最大个数为10.
4071
+ # @type DestinationInfos: Array
4072
+ # @param OutputMediaSetting: 输出媒体配置。
4073
+ # @type OutputMediaSetting: :class:`Tencentcloud::Cme.v20191029.models.MediaCastOutputMediaSetting`
4074
+ # @param PlaySetting: 播放控制参数。
4075
+ # @type PlaySetting: :class:`Tencentcloud::Cme.v20191029.models.MediaCastPlaySetting`
4076
+
4077
+ attr_accessor :SourceInfos, :DestinationInfos, :OutputMediaSetting, :PlaySetting
4078
+
4079
+ def initialize(sourceinfos=nil, destinationinfos=nil, outputmediasetting=nil, playsetting=nil)
4080
+ @SourceInfos = sourceinfos
4081
+ @DestinationInfos = destinationinfos
4082
+ @OutputMediaSetting = outputmediasetting
4083
+ @PlaySetting = playsetting
4084
+ end
4085
+
4086
+ def deserialize(params)
4087
+ unless params['SourceInfos'].nil?
4088
+ @SourceInfos = []
4089
+ params['SourceInfos'].each do |i|
4090
+ mediacastsourceinfo_tmp = MediaCastSourceInfo.new
4091
+ mediacastsourceinfo_tmp.deserialize(i)
4092
+ @SourceInfos << mediacastsourceinfo_tmp
4093
+ end
4094
+ end
4095
+ unless params['DestinationInfos'].nil?
4096
+ @DestinationInfos = []
4097
+ params['DestinationInfos'].each do |i|
4098
+ mediacastdestinationinfo_tmp = MediaCastDestinationInfo.new
4099
+ mediacastdestinationinfo_tmp.deserialize(i)
4100
+ @DestinationInfos << mediacastdestinationinfo_tmp
4101
+ end
4102
+ end
4103
+ unless params['OutputMediaSetting'].nil?
4104
+ @OutputMediaSetting = MediaCastOutputMediaSetting.new
4105
+ @OutputMediaSetting.deserialize(params['OutputMediaSetting'])
4106
+ end
4107
+ unless params['PlaySetting'].nil?
4108
+ @PlaySetting = MediaCastPlaySetting.new
4109
+ @PlaySetting.deserialize(params['PlaySetting'])
4110
+ end
4111
+ end
4112
+ end
4113
+
3864
4114
  # 点播转直播输入源信息。
3865
4115
  class MediaCastSourceInfo < TencentCloud::Common::AbstractModel
4116
+ # @param Id: 输入源 Id,由系统分配。
4117
+ # 注意:此字段可能返回 null,表示取不到有效值。
4118
+ # @type Id: String
3866
4119
  # @param Type: 输入源的媒体类型,取值有:
3867
4120
  # <li>CME:多媒体创作引擎的媒体文件;</li>
3868
4121
  # <li>VOD:云点播的媒资文件。</li>
3869
4122
  # @type Type: String
3870
- # @param MaterialId: 多媒体创作引擎的媒体 ID。当 Type = CME 时必填。
3871
- # @type MaterialId: String
3872
4123
  # @param FileId: 云点播媒体文件 ID。当 Type = VOD 时必填。
3873
4124
  # @type FileId: String
3874
- # @param Index: 序号,位于输入源列表中的序号,由系统分配。
3875
- # @type Index: Integer
4125
+ # @param MaterialId: 多媒体创作引擎的媒体 ID。当 Type = CME 时必填。
4126
+ # @type MaterialId: String
3876
4127
 
3877
- attr_accessor :Type, :MaterialId, :FileId, :Index
4128
+ attr_accessor :Id, :Type, :FileId, :MaterialId
3878
4129
 
3879
- def initialize(type=nil, materialid=nil, fileid=nil, index=nil)
4130
+ def initialize(id=nil, type=nil, fileid=nil, materialid=nil)
4131
+ @Id = id
3880
4132
  @Type = type
3881
- @MaterialId = materialid
3882
4133
  @FileId = fileid
3883
- @Index = index
4134
+ @MaterialId = materialid
3884
4135
  end
3885
4136
 
3886
4137
  def deserialize(params)
4138
+ @Id = params['Id']
3887
4139
  @Type = params['Type']
3888
- @MaterialId = params['MaterialId']
3889
4140
  @FileId = params['FileId']
3890
- @Index = params['Index']
4141
+ @MaterialId = params['MaterialId']
3891
4142
  end
3892
4143
  end
3893
4144
 
@@ -4969,7 +5220,6 @@ module TencentCloud
4969
5220
  # 资源信息,包含资源以及归属信息
4970
5221
  class ResourceInfo < TencentCloud::Common::AbstractModel
4971
5222
  # @param Resource: 媒资和分类资源。
4972
- # 注意:此字段可能返回 null,表示取不到有效值。
4973
5223
  # @type Resource: :class:`Tencentcloud::Cme.v20191029.models.Resource`
4974
5224
  # @param Owner: 资源归属,个人或团队。
4975
5225
  # @type Owner: :class:`Tencentcloud::Cme.v20191029.models.Entity`
@@ -5854,10 +6104,8 @@ module TencentCloud
5854
6104
  # 时间范围
5855
6105
  class TimeRange < TencentCloud::Common::AbstractModel
5856
6106
  # @param StartTime: 开始时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。
5857
- # 注意:此字段可能返回 null,表示取不到有效值。
5858
6107
  # @type StartTime: String
5859
6108
  # @param EndTime: 结束时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。
5860
- # 注意:此字段可能返回 null,表示取不到有效值。
5861
6109
  # @type EndTime: String
5862
6110
 
5863
6111
  attr_accessor :StartTime, :EndTime
@@ -5951,14 +6199,17 @@ module TencentCloud
5951
6199
  # @param MetaData: 元信息。
5952
6200
  # 注意:此字段可能返回 null,表示取不到有效值。
5953
6201
  # @type MetaData: :class:`Tencentcloud::Cme.v20191029.models.MediaMetaData`
6202
+ # @param CoverURL: 导出视频的封面图片 URL。
6203
+ # @type CoverURL: String
5954
6204
 
5955
- attr_accessor :MaterialId, :VodFileId, :URL, :MetaData
6205
+ attr_accessor :MaterialId, :VodFileId, :URL, :MetaData, :CoverURL
5956
6206
 
5957
- def initialize(materialid=nil, vodfileid=nil, url=nil, metadata=nil)
6207
+ def initialize(materialid=nil, vodfileid=nil, url=nil, metadata=nil, coverurl=nil)
5958
6208
  @MaterialId = materialid
5959
6209
  @VodFileId = vodfileid
5960
6210
  @URL = url
5961
6211
  @MetaData = metadata
6212
+ @CoverURL = coverurl
5962
6213
  end
5963
6214
 
5964
6215
  def deserialize(params)
@@ -5969,6 +6220,7 @@ module TencentCloud
5969
6220
  @MetaData = MediaMetaData.new
5970
6221
  @MetaData.deserialize(params['MetaData'])
5971
6222
  end
6223
+ @CoverURL = params['CoverURL']
5972
6224
  end
5973
6225
  end
5974
6226
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-cme
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.536
4
+ version: 3.0.537
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-23 00:00:00.000000000 Z
11
+ date: 2023-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common