1 Star 14 Fork 3

tencentcloud/tencentcloud-sdk-dotnet

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
LiveClient.cs 199.73 KB
Copy Edit Raw Blame History
tencentcloud authored 2024-11-04 04:45 . release 3.0.1116
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* 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.
*/
namespace TencentCloud.Live.V20180801
{
using Newtonsoft.Json;
using System.Threading.Tasks;
using TencentCloud.Common;
using TencentCloud.Common.Profile;
using TencentCloud.Live.V20180801.Models;
public class LiveClient : AbstractClient{
private const string endpoint = "live.tencentcloudapi.com";
private const string version = "2018-08-01";
private const string sdkVersion = "SDK_NET_3.0.1116";
/// <summary>
/// Client constructor.
/// </summary>
/// <param name="credential">Credentials.</param>
/// <param name="region">Region name, such as "ap-guangzhou".</param>
public LiveClient(Credential credential, string region)
: this(credential, region, new ClientProfile { Language = Language.ZH_CN })
{
}
/// <summary>
/// Client Constructor.
/// </summary>
/// <param name="credential">Credentials.</param>
/// <param name="region">Region name, such as "ap-guangzhou".</param>
/// <param name="profile">Client profiles.</param>
public LiveClient(Credential credential, string region, ClientProfile profile)
: base(endpoint, version, credential, region, profile)
{
SdkVersion = sdkVersion;
}
/// <summary>
/// 针对大型活动直播,通过对直播流设置延时来控制现场与观众播放画面的时间间隔,避免突发状况造成影响。
///
/// 注意:如果在推流前设置延播,需要提前5分钟设置,目前该接口只支持流粒度。
/// </summary>
/// <param name="req"><see cref="AddDelayLiveStreamRequest"/></param>
/// <returns><see cref="AddDelayLiveStreamResponse"/></returns>
public Task<AddDelayLiveStreamResponse> AddDelayLiveStream(AddDelayLiveStreamRequest req)
{
return InternalRequestAsync<AddDelayLiveStreamResponse>(req, "AddDelayLiveStream");
}
/// <summary>
/// 针对大型活动直播,通过对直播流设置延时来控制现场与观众播放画面的时间间隔,避免突发状况造成影响。
///
/// 注意:如果在推流前设置延播,需要提前5分钟设置,目前该接口只支持流粒度。
/// </summary>
/// <param name="req"><see cref="AddDelayLiveStreamRequest"/></param>
/// <returns><see cref="AddDelayLiveStreamResponse"/></returns>
public AddDelayLiveStreamResponse AddDelayLiveStreamSync(AddDelayLiveStreamRequest req)
{
return InternalRequestAsync<AddDelayLiveStreamResponse>(req, "AddDelayLiveStream")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 添加域名,一次只能提交一个域名。域名必须已备案。
/// </summary>
/// <param name="req"><see cref="AddLiveDomainRequest"/></param>
/// <returns><see cref="AddLiveDomainResponse"/></returns>
public Task<AddLiveDomainResponse> AddLiveDomain(AddLiveDomainRequest req)
{
return InternalRequestAsync<AddLiveDomainResponse>(req, "AddLiveDomain");
}
/// <summary>
/// 添加域名,一次只能提交一个域名。域名必须已备案。
/// </summary>
/// <param name="req"><see cref="AddLiveDomainRequest"/></param>
/// <returns><see cref="AddLiveDomainResponse"/></returns>
public AddLiveDomainResponse AddLiveDomainSync(AddLiveDomainRequest req)
{
return InternalRequestAsync<AddLiveDomainResponse>(req, "AddLiveDomain")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 添加水印,成功返回水印 ID 后,需要调用[CreateLiveWatermarkRule](/document/product/267/32629)接口将水印 ID 绑定到流使用。 水印数量上限 100,超过后需要先删除,再添加。
/// </summary>
/// <param name="req"><see cref="AddLiveWatermarkRequest"/></param>
/// <returns><see cref="AddLiveWatermarkResponse"/></returns>
public Task<AddLiveWatermarkResponse> AddLiveWatermark(AddLiveWatermarkRequest req)
{
return InternalRequestAsync<AddLiveWatermarkResponse>(req, "AddLiveWatermark");
}
/// <summary>
/// 添加水印,成功返回水印 ID 后,需要调用[CreateLiveWatermarkRule](/document/product/267/32629)接口将水印 ID 绑定到流使用。 水印数量上限 100,超过后需要先删除,再添加。
/// </summary>
/// <param name="req"><see cref="AddLiveWatermarkRequest"/></param>
/// <returns><see cref="AddLiveWatermarkResponse"/></returns>
public AddLiveWatermarkResponse AddLiveWatermarkSync(AddLiveWatermarkRequest req)
{
return InternalRequestAsync<AddLiveWatermarkResponse>(req, "AddLiveWatermark")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 验证用户是否拥有特定直播域名。
/// </summary>
/// <param name="req"><see cref="AuthenticateDomainOwnerRequest"/></param>
/// <returns><see cref="AuthenticateDomainOwnerResponse"/></returns>
public Task<AuthenticateDomainOwnerResponse> AuthenticateDomainOwner(AuthenticateDomainOwnerRequest req)
{
return InternalRequestAsync<AuthenticateDomainOwnerResponse>(req, "AuthenticateDomainOwner");
}
/// <summary>
/// 验证用户是否拥有特定直播域名。
/// </summary>
/// <param name="req"><see cref="AuthenticateDomainOwnerRequest"/></param>
/// <returns><see cref="AuthenticateDomainOwnerResponse"/></returns>
public AuthenticateDomainOwnerResponse AuthenticateDomainOwnerSync(AuthenticateDomainOwnerRequest req)
{
return InternalRequestAsync<AuthenticateDomainOwnerResponse>(req, "AuthenticateDomainOwner")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 该接口用来取消混流。用法与 mix_streamv2.cancel_mix_stream 基本一致。
/// </summary>
/// <param name="req"><see cref="CancelCommonMixStreamRequest"/></param>
/// <returns><see cref="CancelCommonMixStreamResponse"/></returns>
public Task<CancelCommonMixStreamResponse> CancelCommonMixStream(CancelCommonMixStreamRequest req)
{
return InternalRequestAsync<CancelCommonMixStreamResponse>(req, "CancelCommonMixStream");
}
/// <summary>
/// 该接口用来取消混流。用法与 mix_streamv2.cancel_mix_stream 基本一致。
/// </summary>
/// <param name="req"><see cref="CancelCommonMixStreamRequest"/></param>
/// <returns><see cref="CancelCommonMixStreamResponse"/></returns>
public CancelCommonMixStreamResponse CancelCommonMixStreamSync(CancelCommonMixStreamRequest req)
{
return InternalRequestAsync<CancelCommonMixStreamResponse>(req, "CancelCommonMixStream")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 该接口用来创建通用混流。用法与旧接口 mix_streamv2.start_mix_stream_advanced 基本一致。
/// 注意:当前最多支持16路混流。
/// 最佳实践:https://cloud.tencent.com/document/product/267/45566
/// </summary>
/// <param name="req"><see cref="CreateCommonMixStreamRequest"/></param>
/// <returns><see cref="CreateCommonMixStreamResponse"/></returns>
public Task<CreateCommonMixStreamResponse> CreateCommonMixStream(CreateCommonMixStreamRequest req)
{
return InternalRequestAsync<CreateCommonMixStreamResponse>(req, "CreateCommonMixStream");
}
/// <summary>
/// 该接口用来创建通用混流。用法与旧接口 mix_streamv2.start_mix_stream_advanced 基本一致。
/// 注意:当前最多支持16路混流。
/// 最佳实践:https://cloud.tencent.com/document/product/267/45566
/// </summary>
/// <param name="req"><see cref="CreateCommonMixStreamRequest"/></param>
/// <returns><see cref="CreateCommonMixStreamResponse"/></returns>
public CreateCommonMixStreamResponse CreateCommonMixStreamSync(CreateCommonMixStreamRequest req)
{
return InternalRequestAsync<CreateCommonMixStreamResponse>(req, "CreateCommonMixStream")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 创建回调规则,需要先调用[CreateLiveCallbackTemplate](/document/product/267/32637)接口创建回调模板,将返回的模板id绑定到域名/路径进行使用。
/// <br>回调协议相关文档:[事件消息通知](/document/product/267/32744)。
/// </summary>
/// <param name="req"><see cref="CreateLiveCallbackRuleRequest"/></param>
/// <returns><see cref="CreateLiveCallbackRuleResponse"/></returns>
public Task<CreateLiveCallbackRuleResponse> CreateLiveCallbackRule(CreateLiveCallbackRuleRequest req)
{
return InternalRequestAsync<CreateLiveCallbackRuleResponse>(req, "CreateLiveCallbackRule");
}
/// <summary>
/// 创建回调规则,需要先调用[CreateLiveCallbackTemplate](/document/product/267/32637)接口创建回调模板,将返回的模板id绑定到域名/路径进行使用。
/// <br>回调协议相关文档:[事件消息通知](/document/product/267/32744)。
/// </summary>
/// <param name="req"><see cref="CreateLiveCallbackRuleRequest"/></param>
/// <returns><see cref="CreateLiveCallbackRuleResponse"/></returns>
public CreateLiveCallbackRuleResponse CreateLiveCallbackRuleSync(CreateLiveCallbackRuleRequest req)
{
return InternalRequestAsync<CreateLiveCallbackRuleResponse>(req, "CreateLiveCallbackRule")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 创建回调模板,数量上限:50,成功返回模板id后,需要调用[CreateLiveCallbackRule](/document/product/267/32638)接口将模板 ID 绑定到域名/路径使用。
/// <br>回调协议相关文档:[事件消息通知](/document/product/267/32744)。
/// 注意:至少填写一个回调 URL。
/// </summary>
/// <param name="req"><see cref="CreateLiveCallbackTemplateRequest"/></param>
/// <returns><see cref="CreateLiveCallbackTemplateResponse"/></returns>
public Task<CreateLiveCallbackTemplateResponse> CreateLiveCallbackTemplate(CreateLiveCallbackTemplateRequest req)
{
return InternalRequestAsync<CreateLiveCallbackTemplateResponse>(req, "CreateLiveCallbackTemplate");
}
/// <summary>
/// 创建回调模板,数量上限:50,成功返回模板id后,需要调用[CreateLiveCallbackRule](/document/product/267/32638)接口将模板 ID 绑定到域名/路径使用。
/// <br>回调协议相关文档:[事件消息通知](/document/product/267/32744)。
/// 注意:至少填写一个回调 URL。
/// </summary>
/// <param name="req"><see cref="CreateLiveCallbackTemplateRequest"/></param>
/// <returns><see cref="CreateLiveCallbackTemplateResponse"/></returns>
public CreateLiveCallbackTemplateResponse CreateLiveCallbackTemplateSync(CreateLiveCallbackTemplateRequest req)
{
return InternalRequestAsync<CreateLiveCallbackTemplateResponse>(req, "CreateLiveCallbackTemplate")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 创建直播垫片规则。
/// </summary>
/// <param name="req"><see cref="CreateLivePadRuleRequest"/></param>
/// <returns><see cref="CreateLivePadRuleResponse"/></returns>
public Task<CreateLivePadRuleResponse> CreateLivePadRule(CreateLivePadRuleRequest req)
{
return InternalRequestAsync<CreateLivePadRuleResponse>(req, "CreateLivePadRule");
}
/// <summary>
/// 创建直播垫片规则。
/// </summary>
/// <param name="req"><see cref="CreateLivePadRuleRequest"/></param>
/// <returns><see cref="CreateLivePadRuleResponse"/></returns>
public CreateLivePadRuleResponse CreateLivePadRuleSync(CreateLivePadRuleRequest req)
{
return InternalRequestAsync<CreateLivePadRuleResponse>(req, "CreateLivePadRule")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 创建直播垫片模板。
/// </summary>
/// <param name="req"><see cref="CreateLivePadTemplateRequest"/></param>
/// <returns><see cref="CreateLivePadTemplateResponse"/></returns>
public Task<CreateLivePadTemplateResponse> CreateLivePadTemplate(CreateLivePadTemplateRequest req)
{
return InternalRequestAsync<CreateLivePadTemplateResponse>(req, "CreateLivePadTemplate");
}
/// <summary>
/// 创建直播垫片模板。
/// </summary>
/// <param name="req"><see cref="CreateLivePadTemplateRequest"/></param>
/// <returns><see cref="CreateLivePadTemplateResponse"/></returns>
public CreateLivePadTemplateResponse CreateLivePadTemplateSync(CreateLivePadTemplateRequest req)
{
return InternalRequestAsync<CreateLivePadTemplateResponse>(req, "CreateLivePadTemplate")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 创建直播拉流任务。支持将外部已有的点播文件,或者直播源拉取过来转推到指定的目标地址。
/// 注意:
/// 1. 默认支持任务数上限200个,如有特殊需求,可通过提单到售后进行评估增加上限。
/// 2. 源流视频编码目前只支持: H264, H265。其他编码格式建议先进行转码处理。
/// 3. 源流音频编码目前只支持: AAC。其他编码格式建议先进行转码处理。
/// 4. 可在控制台开启过期自动清理,避免过期任务占用任务数额度。
/// 5. 拉流转推功能为计费增值服务,计费规则详情可参见[计费文档](https://cloud.tencent.com/document/product/267/53308)。
/// 6. 拉流转推功能仅提供内容拉取与推送服务,请确保内容已获得授权并符合内容传播相关的法律法规。若内容有侵权或违规相关问题,云直播会停止相关的功能服务并保留追究法律责任的权利。
/// </summary>
/// <param name="req"><see cref="CreateLivePullStreamTaskRequest"/></param>
/// <returns><see cref="CreateLivePullStreamTaskResponse"/></returns>
public Task<CreateLivePullStreamTaskResponse> CreateLivePullStreamTask(CreateLivePullStreamTaskRequest req)
{
return InternalRequestAsync<CreateLivePullStreamTaskResponse>(req, "CreateLivePullStreamTask");
}
/// <summary>
/// 创建直播拉流任务。支持将外部已有的点播文件,或者直播源拉取过来转推到指定的目标地址。
/// 注意:
/// 1. 默认支持任务数上限200个,如有特殊需求,可通过提单到售后进行评估增加上限。
/// 2. 源流视频编码目前只支持: H264, H265。其他编码格式建议先进行转码处理。
/// 3. 源流音频编码目前只支持: AAC。其他编码格式建议先进行转码处理。
/// 4. 可在控制台开启过期自动清理,避免过期任务占用任务数额度。
/// 5. 拉流转推功能为计费增值服务,计费规则详情可参见[计费文档](https://cloud.tencent.com/document/product/267/53308)。
/// 6. 拉流转推功能仅提供内容拉取与推送服务,请确保内容已获得授权并符合内容传播相关的法律法规。若内容有侵权或违规相关问题,云直播会停止相关的功能服务并保留追究法律责任的权利。
/// </summary>
/// <param name="req"><see cref="CreateLivePullStreamTaskRequest"/></param>
/// <returns><see cref="CreateLivePullStreamTaskResponse"/></returns>
public CreateLivePullStreamTaskResponse CreateLivePullStreamTaskSync(CreateLivePullStreamTaskRequest req)
{
return InternalRequestAsync<CreateLivePullStreamTaskResponse>(req, "CreateLivePullStreamTask")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// - 使用前提
/// 1. 录制文件存放于点播平台,所以用户如需使用录制功能,需首先自行开通点播服务。
/// 2. 录制文件存放后相关费用(含存储以及下行播放流量)按照点播平台计费方式收取,具体请参考 [对应文档](https://cloud.tencent.com/document/product/266/2838)。
///
/// - 模式说明
/// 该接口支持两种录制模式:
/// 1. 定时录制模式【默认模式】。
/// 需要传入开始时间与结束时间,录制任务根据起止时间自动开始与结束。在所设置结束时间过期之前(且未调用StopLiveRecord提前终止任务),录制任务都是有效的,期间多次断流然后重推都会启动录制任务。
/// 2. 实时视频录制模式。
/// 忽略传入的开始时间,在录制任务创建后立即开始录制,录制时长支持最大为30分钟,如果传入的结束时间与当前时间差大于30分钟,则按30分钟计算,实时视频录制主要用于录制精彩视频场景,时长建议控制在5分钟以内。
///
/// - 注意事项
/// 1. 调用接口超时设置应大于3秒,小于3秒重试以及按不同起止时间调用都有可能产生重复录制任务,进而导致额外录制费用。
/// 2. 受限于音视频文件格式(FLV/MP4/HLS)对编码类型的支持,视频编码类型支持 H.264,音频编码类型支持 AAC。
/// 3. 为避免恶意或非主观的频繁 API 请求,对定时录制模式最大创建任务数做了限制:其中,当天可以创建的最大任务数不超过4000(不含已删除的任务);当前时刻并发运行的任务数不超过400。有超出此限制的需要提工单申请。
/// 4. 此调用方式暂时不支持海外推流录制。
/// </summary>
/// <param name="req"><see cref="CreateLiveRecordRequest"/></param>
/// <returns><see cref="CreateLiveRecordResponse"/></returns>
public Task<CreateLiveRecordResponse> CreateLiveRecord(CreateLiveRecordRequest req)
{
return InternalRequestAsync<CreateLiveRecordResponse>(req, "CreateLiveRecord");
}
/// <summary>
/// - 使用前提
/// 1. 录制文件存放于点播平台,所以用户如需使用录制功能,需首先自行开通点播服务。
/// 2. 录制文件存放后相关费用(含存储以及下行播放流量)按照点播平台计费方式收取,具体请参考 [对应文档](https://cloud.tencent.com/document/product/266/2838)。
///
/// - 模式说明
/// 该接口支持两种录制模式:
/// 1. 定时录制模式【默认模式】。
/// 需要传入开始时间与结束时间,录制任务根据起止时间自动开始与结束。在所设置结束时间过期之前(且未调用StopLiveRecord提前终止任务),录制任务都是有效的,期间多次断流然后重推都会启动录制任务。
/// 2. 实时视频录制模式。
/// 忽略传入的开始时间,在录制任务创建后立即开始录制,录制时长支持最大为30分钟,如果传入的结束时间与当前时间差大于30分钟,则按30分钟计算,实时视频录制主要用于录制精彩视频场景,时长建议控制在5分钟以内。
///
/// - 注意事项
/// 1. 调用接口超时设置应大于3秒,小于3秒重试以及按不同起止时间调用都有可能产生重复录制任务,进而导致额外录制费用。
/// 2. 受限于音视频文件格式(FLV/MP4/HLS)对编码类型的支持,视频编码类型支持 H.264,音频编码类型支持 AAC。
/// 3. 为避免恶意或非主观的频繁 API 请求,对定时录制模式最大创建任务数做了限制:其中,当天可以创建的最大任务数不超过4000(不含已删除的任务);当前时刻并发运行的任务数不超过400。有超出此限制的需要提工单申请。
/// 4. 此调用方式暂时不支持海外推流录制。
/// </summary>
/// <param name="req"><see cref="CreateLiveRecordRequest"/></param>
/// <returns><see cref="CreateLiveRecordResponse"/></returns>
public CreateLiveRecordResponse CreateLiveRecordSync(CreateLiveRecordRequest req)
{
return InternalRequestAsync<CreateLiveRecordResponse>(req, "CreateLiveRecord")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 创建录制规则,需要先调用[CreateLiveRecordTemplate](/document/product/267/32614)接口创建录制模板,将返回的模板id绑定到流使用。
/// <br>录制相关文档:[直播录制](/document/product/267/32739)。
/// </summary>
/// <param name="req"><see cref="CreateLiveRecordRuleRequest"/></param>
/// <returns><see cref="CreateLiveRecordRuleResponse"/></returns>
public Task<CreateLiveRecordRuleResponse> CreateLiveRecordRule(CreateLiveRecordRuleRequest req)
{
return InternalRequestAsync<CreateLiveRecordRuleResponse>(req, "CreateLiveRecordRule");
}
/// <summary>
/// 创建录制规则,需要先调用[CreateLiveRecordTemplate](/document/product/267/32614)接口创建录制模板,将返回的模板id绑定到流使用。
/// <br>录制相关文档:[直播录制](/document/product/267/32739)。
/// </summary>
/// <param name="req"><see cref="CreateLiveRecordRuleRequest"/></param>
/// <returns><see cref="CreateLiveRecordRuleResponse"/></returns>
public CreateLiveRecordRuleResponse CreateLiveRecordRuleSync(CreateLiveRecordRuleRequest req)
{
return InternalRequestAsync<CreateLiveRecordRuleResponse>(req, "CreateLiveRecordRule")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 创建录制模板,数量上限:50,成功返回模板id后,需要调用[CreateLiveRecordRule](/document/product/267/32615)接口,将模板id绑定到流进行使用。
/// <br>录制相关文档:[直播录制](/document/product/267/32739)。
/// </summary>
/// <param name="req"><see cref="CreateLiveRecordTemplateRequest"/></param>
/// <returns><see cref="CreateLiveRecordTemplateResponse"/></returns>
public Task<CreateLiveRecordTemplateResponse> CreateLiveRecordTemplate(CreateLiveRecordTemplateRequest req)
{
return InternalRequestAsync<CreateLiveRecordTemplateResponse>(req, "CreateLiveRecordTemplate");
}
/// <summary>
/// 创建录制模板,数量上限:50,成功返回模板id后,需要调用[CreateLiveRecordRule](/document/product/267/32615)接口,将模板id绑定到流进行使用。
/// <br>录制相关文档:[直播录制](/document/product/267/32739)。
/// </summary>
/// <param name="req"><see cref="CreateLiveRecordTemplateRequest"/></param>
/// <returns><see cref="CreateLiveRecordTemplateResponse"/></returns>
public CreateLiveRecordTemplateResponse CreateLiveRecordTemplateSync(CreateLiveRecordTemplateRequest req)
{
return InternalRequestAsync<CreateLiveRecordTemplateResponse>(req, "CreateLiveRecordTemplate")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 创建截图规则,需要先调用[CreateLiveSnapshotTemplate](/document/product/267/32624)接口创建截图模板,然后将返回的模板 ID 绑定到流进行使用。
/// <br>截图相关文档:[直播截图](/document/product/267/32737)。
/// 注意:单个域名仅支持关联一个截图模板。
/// </summary>
/// <param name="req"><see cref="CreateLiveSnapshotRuleRequest"/></param>
/// <returns><see cref="CreateLiveSnapshotRuleResponse"/></returns>
public Task<CreateLiveSnapshotRuleResponse> CreateLiveSnapshotRule(CreateLiveSnapshotRuleRequest req)
{
return InternalRequestAsync<CreateLiveSnapshotRuleResponse>(req, "CreateLiveSnapshotRule");
}
/// <summary>
/// 创建截图规则,需要先调用[CreateLiveSnapshotTemplate](/document/product/267/32624)接口创建截图模板,然后将返回的模板 ID 绑定到流进行使用。
/// <br>截图相关文档:[直播截图](/document/product/267/32737)。
/// 注意:单个域名仅支持关联一个截图模板。
/// </summary>
/// <param name="req"><see cref="CreateLiveSnapshotRuleRequest"/></param>
/// <returns><see cref="CreateLiveSnapshotRuleResponse"/></returns>
public CreateLiveSnapshotRuleResponse CreateLiveSnapshotRuleSync(CreateLiveSnapshotRuleRequest req)
{
return InternalRequestAsync<CreateLiveSnapshotRuleResponse>(req, "CreateLiveSnapshotRule")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 创建截图模板,数量上限:50,成功返回模板id后,需要调用[CreateLiveSnapshotRule](/document/product/267/32625)接口,将模板id绑定到流使用。
/// <br>截图相关文档:[直播截图](/document/product/267/32737)。
/// </summary>
/// <param name="req"><see cref="CreateLiveSnapshotTemplateRequest"/></param>
/// <returns><see cref="CreateLiveSnapshotTemplateResponse"/></returns>
public Task<CreateLiveSnapshotTemplateResponse> CreateLiveSnapshotTemplate(CreateLiveSnapshotTemplateRequest req)
{
return InternalRequestAsync<CreateLiveSnapshotTemplateResponse>(req, "CreateLiveSnapshotTemplate");
}
/// <summary>
/// 创建截图模板,数量上限:50,成功返回模板id后,需要调用[CreateLiveSnapshotRule](/document/product/267/32625)接口,将模板id绑定到流使用。
/// <br>截图相关文档:[直播截图](/document/product/267/32737)。
/// </summary>
/// <param name="req"><see cref="CreateLiveSnapshotTemplateRequest"/></param>
/// <returns><see cref="CreateLiveSnapshotTemplateResponse"/></returns>
public CreateLiveSnapshotTemplateResponse CreateLiveSnapshotTemplateSync(CreateLiveSnapshotTemplateRequest req)
{
return InternalRequestAsync<CreateLiveSnapshotTemplateResponse>(req, "CreateLiveSnapshotTemplate")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 该接口用来创建直播流监播任务。
/// </summary>
/// <param name="req"><see cref="CreateLiveStreamMonitorRequest"/></param>
/// <returns><see cref="CreateLiveStreamMonitorResponse"/></returns>
public Task<CreateLiveStreamMonitorResponse> CreateLiveStreamMonitor(CreateLiveStreamMonitorRequest req)
{
return InternalRequestAsync<CreateLiveStreamMonitorResponse>(req, "CreateLiveStreamMonitor");
}
/// <summary>
/// 该接口用来创建直播流监播任务。
/// </summary>
/// <param name="req"><see cref="CreateLiveStreamMonitorRequest"/></param>
/// <returns><see cref="CreateLiveStreamMonitorResponse"/></returns>
public CreateLiveStreamMonitorResponse CreateLiveStreamMonitorSync(CreateLiveStreamMonitorRequest req)
{
return InternalRequestAsync<CreateLiveStreamMonitorResponse>(req, "CreateLiveStreamMonitor")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 创建直播时移规则,需要先调用[CreateLiveTimeShiftTemplate](/document/product/267/86169)接口创建直播时移模板,将返回的模板id绑定到流使用。
/// <br>直播时移相关文档:[直播时移](/document/product/267/86134)。
/// </summary>
/// <param name="req"><see cref="CreateLiveTimeShiftRuleRequest"/></param>
/// <returns><see cref="CreateLiveTimeShiftRuleResponse"/></returns>
public Task<CreateLiveTimeShiftRuleResponse> CreateLiveTimeShiftRule(CreateLiveTimeShiftRuleRequest req)
{
return InternalRequestAsync<CreateLiveTimeShiftRuleResponse>(req, "CreateLiveTimeShiftRule");
}
/// <summary>
/// 创建直播时移规则,需要先调用[CreateLiveTimeShiftTemplate](/document/product/267/86169)接口创建直播时移模板,将返回的模板id绑定到流使用。
/// <br>直播时移相关文档:[直播时移](/document/product/267/86134)。
/// </summary>
/// <param name="req"><see cref="CreateLiveTimeShiftRuleRequest"/></param>
/// <returns><see cref="CreateLiveTimeShiftRuleResponse"/></returns>
public CreateLiveTimeShiftRuleResponse CreateLiveTimeShiftRuleSync(CreateLiveTimeShiftRuleRequest req)
{
return InternalRequestAsync<CreateLiveTimeShiftRuleResponse>(req, "CreateLiveTimeShiftRule")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 创建直播时移模板。
/// </summary>
/// <param name="req"><see cref="CreateLiveTimeShiftTemplateRequest"/></param>
/// <returns><see cref="CreateLiveTimeShiftTemplateResponse"/></returns>
public Task<CreateLiveTimeShiftTemplateResponse> CreateLiveTimeShiftTemplate(CreateLiveTimeShiftTemplateRequest req)
{
return InternalRequestAsync<CreateLiveTimeShiftTemplateResponse>(req, "CreateLiveTimeShiftTemplate");
}
/// <summary>
/// 创建直播时移模板。
/// </summary>
/// <param name="req"><see cref="CreateLiveTimeShiftTemplateRequest"/></param>
/// <returns><see cref="CreateLiveTimeShiftTemplateResponse"/></returns>
public CreateLiveTimeShiftTemplateResponse CreateLiveTimeShiftTemplateSync(CreateLiveTimeShiftTemplateRequest req)
{
return InternalRequestAsync<CreateLiveTimeShiftTemplateResponse>(req, "CreateLiveTimeShiftTemplate")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 创建转码规则,数量上限:50,需要先调用[CreateLiveTranscodeTemplate](/document/product/267/32646)接口创建转码模板,将返回的模板id绑定到流使用。
/// <br>转码相关文档:[直播转封装及转码](/document/product/267/32736)。
/// </summary>
/// <param name="req"><see cref="CreateLiveTranscodeRuleRequest"/></param>
/// <returns><see cref="CreateLiveTranscodeRuleResponse"/></returns>
public Task<CreateLiveTranscodeRuleResponse> CreateLiveTranscodeRule(CreateLiveTranscodeRuleRequest req)
{
return InternalRequestAsync<CreateLiveTranscodeRuleResponse>(req, "CreateLiveTranscodeRule");
}
/// <summary>
/// 创建转码规则,数量上限:50,需要先调用[CreateLiveTranscodeTemplate](/document/product/267/32646)接口创建转码模板,将返回的模板id绑定到流使用。
/// <br>转码相关文档:[直播转封装及转码](/document/product/267/32736)。
/// </summary>
/// <param name="req"><see cref="CreateLiveTranscodeRuleRequest"/></param>
/// <returns><see cref="CreateLiveTranscodeRuleResponse"/></returns>
public CreateLiveTranscodeRuleResponse CreateLiveTranscodeRuleSync(CreateLiveTranscodeRuleRequest req)
{
return InternalRequestAsync<CreateLiveTranscodeRuleResponse>(req, "CreateLiveTranscodeRule")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 创建转码模板,数量上限:50,成功返回模板id后,需要调用[CreateLiveTranscodeRule](/document/product/267/32647)接口,将返回的模板id绑定到流使用。
/// <br>转码相关文档:[直播转封装及转码](/document/product/267/32736)。
/// </summary>
/// <param name="req"><see cref="CreateLiveTranscodeTemplateRequest"/></param>
/// <returns><see cref="CreateLiveTranscodeTemplateResponse"/></returns>
public Task<CreateLiveTranscodeTemplateResponse> CreateLiveTranscodeTemplate(CreateLiveTranscodeTemplateRequest req)
{
return InternalRequestAsync<CreateLiveTranscodeTemplateResponse>(req, "CreateLiveTranscodeTemplate");
}
/// <summary>
/// 创建转码模板,数量上限:50,成功返回模板id后,需要调用[CreateLiveTranscodeRule](/document/product/267/32647)接口,将返回的模板id绑定到流使用。
/// <br>转码相关文档:[直播转封装及转码](/document/product/267/32736)。
/// </summary>
/// <param name="req"><see cref="CreateLiveTranscodeTemplateRequest"/></param>
/// <returns><see cref="CreateLiveTranscodeTemplateResponse"/></returns>
public CreateLiveTranscodeTemplateResponse CreateLiveTranscodeTemplateSync(CreateLiveTranscodeTemplateRequest req)
{
return InternalRequestAsync<CreateLiveTranscodeTemplateResponse>(req, "CreateLiveTranscodeTemplate")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 创建水印规则,需要先调用[AddLiveWatermark](/document/product/267/30154)接口添加水印,将返回的水印id绑定到流使用。
/// </summary>
/// <param name="req"><see cref="CreateLiveWatermarkRuleRequest"/></param>
/// <returns><see cref="CreateLiveWatermarkRuleResponse"/></returns>
public Task<CreateLiveWatermarkRuleResponse> CreateLiveWatermarkRule(CreateLiveWatermarkRuleRequest req)
{
return InternalRequestAsync<CreateLiveWatermarkRuleResponse>(req, "CreateLiveWatermarkRule");
}
/// <summary>
/// 创建水印规则,需要先调用[AddLiveWatermark](/document/product/267/30154)接口添加水印,将返回的水印id绑定到流使用。
/// </summary>
/// <param name="req"><see cref="CreateLiveWatermarkRuleRequest"/></param>
/// <returns><see cref="CreateLiveWatermarkRuleResponse"/></returns>
public CreateLiveWatermarkRuleResponse CreateLiveWatermarkRuleSync(CreateLiveWatermarkRuleRequest req)
{
return InternalRequestAsync<CreateLiveWatermarkRuleResponse>(req, "CreateLiveWatermarkRule")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 创建临时拉流转推任务,目前限制添加10条任务。
/// 该接口已下线,请使用新接口 CreateLivePullStreamTask。
///
/// 注意:该接口用于创建临时拉流转推任务,
/// 拉流源地址即 FromUrl 可以是腾讯或非腾讯数据源,
/// 但转推目标地址即 ToUrl 目前限制为已注册的腾讯直播域名。
/// </summary>
/// <param name="req"><see cref="CreatePullStreamConfigRequest"/></param>
/// <returns><see cref="CreatePullStreamConfigResponse"/></returns>
public Task<CreatePullStreamConfigResponse> CreatePullStreamConfig(CreatePullStreamConfigRequest req)
{
return InternalRequestAsync<CreatePullStreamConfigResponse>(req, "CreatePullStreamConfig");
}
/// <summary>
/// 创建临时拉流转推任务,目前限制添加10条任务。
/// 该接口已下线,请使用新接口 CreateLivePullStreamTask。
///
/// 注意:该接口用于创建临时拉流转推任务,
/// 拉流源地址即 FromUrl 可以是腾讯或非腾讯数据源,
/// 但转推目标地址即 ToUrl 目前限制为已注册的腾讯直播域名。
/// </summary>
/// <param name="req"><see cref="CreatePullStreamConfigRequest"/></param>
/// <returns><see cref="CreatePullStreamConfigResponse"/></returns>
public CreatePullStreamConfigResponse CreatePullStreamConfigSync(CreatePullStreamConfigRequest req)
{
return InternalRequestAsync<CreatePullStreamConfigResponse>(req, "CreatePullStreamConfig")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 创建一个在指定时间启动、结束的录制任务,并使用指定录制模板ID对应的配置进行录制。
/// - 使用前提
/// 1. 录制文件存放于点播平台或对象存储内,所以用户如需使用录制功能,需首先自行开通点播服务或对象存储服务。
/// 2. 录制文件存放后相关费用(含存储以及下行播放流量)按照点播平台计费方式收取,具体请参考[对应文档](https://cloud.tencent.com/document/product/266/2837)。
/// - 注意事项
/// 1. 断流会结束当前录制并生成录制文件。在结束时间到达之前任务仍然有效,期间只要正常推流都会正常录制,与是否多次推、断流无关。
/// 2. 使用上避免创建时间段相互重叠的录制任务。若同一条流当前存在多个时段重叠的任务,为避免重复录制系统将启动最多3个录制任务。
/// 3. 创建的录制任务记录在平台侧只保留3个月。
/// 4. 当前录制任务管理API([CreateRecordTask](https://cloud.tencent.com/document/product/267/45983)/[StopRecordTask](https://cloud.tencent.com/document/product/267/45981)/[DeleteRecordTask](https://cloud.tencent.com/document/product/267/45982))与旧API(CreateLiveRecord/StopLiveRecord/DeleteLiveRecord)不兼容,两套接口不能混用。
/// 5. 避免 创建录制任务 与 推流 操作同时进行,可能导致因录制任务未生效而引起任务延迟启动问题,两者操作间隔建议大于3秒。
/// </summary>
/// <param name="req"><see cref="CreateRecordTaskRequest"/></param>
/// <returns><see cref="CreateRecordTaskResponse"/></returns>
public Task<CreateRecordTaskResponse> CreateRecordTask(CreateRecordTaskRequest req)
{
return InternalRequestAsync<CreateRecordTaskResponse>(req, "CreateRecordTask");
}
/// <summary>
/// 创建一个在指定时间启动、结束的录制任务,并使用指定录制模板ID对应的配置进行录制。
/// - 使用前提
/// 1. 录制文件存放于点播平台或对象存储内,所以用户如需使用录制功能,需首先自行开通点播服务或对象存储服务。
/// 2. 录制文件存放后相关费用(含存储以及下行播放流量)按照点播平台计费方式收取,具体请参考[对应文档](https://cloud.tencent.com/document/product/266/2837)。
/// - 注意事项
/// 1. 断流会结束当前录制并生成录制文件。在结束时间到达之前任务仍然有效,期间只要正常推流都会正常录制,与是否多次推、断流无关。
/// 2. 使用上避免创建时间段相互重叠的录制任务。若同一条流当前存在多个时段重叠的任务,为避免重复录制系统将启动最多3个录制任务。
/// 3. 创建的录制任务记录在平台侧只保留3个月。
/// 4. 当前录制任务管理API([CreateRecordTask](https://cloud.tencent.com/document/product/267/45983)/[StopRecordTask](https://cloud.tencent.com/document/product/267/45981)/[DeleteRecordTask](https://cloud.tencent.com/document/product/267/45982))与旧API(CreateLiveRecord/StopLiveRecord/DeleteLiveRecord)不兼容,两套接口不能混用。
/// 5. 避免 创建录制任务 与 推流 操作同时进行,可能导致因录制任务未生效而引起任务延迟启动问题,两者操作间隔建议大于3秒。
/// </summary>
/// <param name="req"><see cref="CreateRecordTaskRequest"/></param>
/// <returns><see cref="CreateRecordTaskResponse"/></returns>
public CreateRecordTaskResponse CreateRecordTaskSync(CreateRecordTaskRequest req)
{
return InternalRequestAsync<CreateRecordTaskResponse>(req, "CreateRecordTask")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 创建一个在指定时间启动、结束的截图任务,并使用指定截图模板ID对应的配置进行截图。
/// - 注意事项
/// 1. 断流会结束当前截图。在结束时间到达之前任务仍然有效,期间只要正常推流都会正常截图,与是否多次推、断流无关。
/// 2. 使用上避免创建时间段相互重叠的截图任务。若同一条流当前存在多个时段重叠的任务,为避免重复系统将启动最多3个截图任务。
/// 3. 创建的截图任务记录在平台侧只保留3个月。
/// 4. 当前截图任务管理API(CreateScreenshotTask/StopScreenshotTask/DeleteScreenshotTask)与旧API(CreateLiveInstantSnapshot/StopLiveInstantSnapshot)不兼容,两套接口不能混用。
/// 5. 避免 创建截图任务 与 推流 操作同时进行,可能导致因截图任务未生效而引起任务延迟启动问题,两者操作间隔建议大于3秒。
/// </summary>
/// <param name="req"><see cref="CreateScreenshotTaskRequest"/></param>
/// <returns><see cref="CreateScreenshotTaskResponse"/></returns>
public Task<CreateScreenshotTaskResponse> CreateScreenshotTask(CreateScreenshotTaskRequest req)
{
return InternalRequestAsync<CreateScreenshotTaskResponse>(req, "CreateScreenshotTask");
}
/// <summary>
/// 创建一个在指定时间启动、结束的截图任务,并使用指定截图模板ID对应的配置进行截图。
/// - 注意事项
/// 1. 断流会结束当前截图。在结束时间到达之前任务仍然有效,期间只要正常推流都会正常截图,与是否多次推、断流无关。
/// 2. 使用上避免创建时间段相互重叠的截图任务。若同一条流当前存在多个时段重叠的任务,为避免重复系统将启动最多3个截图任务。
/// 3. 创建的截图任务记录在平台侧只保留3个月。
/// 4. 当前截图任务管理API(CreateScreenshotTask/StopScreenshotTask/DeleteScreenshotTask)与旧API(CreateLiveInstantSnapshot/StopLiveInstantSnapshot)不兼容,两套接口不能混用。
/// 5. 避免 创建截图任务 与 推流 操作同时进行,可能导致因截图任务未生效而引起任务延迟启动问题,两者操作间隔建议大于3秒。
/// </summary>
/// <param name="req"><see cref="CreateScreenshotTaskRequest"/></param>
/// <returns><see cref="CreateScreenshotTaskResponse"/></returns>
public CreateScreenshotTaskResponse CreateScreenshotTaskSync(CreateScreenshotTaskRequest req)
{
return InternalRequestAsync<CreateScreenshotTaskResponse>(req, "CreateScreenshotTask")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 删除回调规则。
/// </summary>
/// <param name="req"><see cref="DeleteLiveCallbackRuleRequest"/></param>
/// <returns><see cref="DeleteLiveCallbackRuleResponse"/></returns>
public Task<DeleteLiveCallbackRuleResponse> DeleteLiveCallbackRule(DeleteLiveCallbackRuleRequest req)
{
return InternalRequestAsync<DeleteLiveCallbackRuleResponse>(req, "DeleteLiveCallbackRule");
}
/// <summary>
/// 删除回调规则。
/// </summary>
/// <param name="req"><see cref="DeleteLiveCallbackRuleRequest"/></param>
/// <returns><see cref="DeleteLiveCallbackRuleResponse"/></returns>
public DeleteLiveCallbackRuleResponse DeleteLiveCallbackRuleSync(DeleteLiveCallbackRuleRequest req)
{
return InternalRequestAsync<DeleteLiveCallbackRuleResponse>(req, "DeleteLiveCallbackRule")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 删除回调模板。
/// </summary>
/// <param name="req"><see cref="DeleteLiveCallbackTemplateRequest"/></param>
/// <returns><see cref="DeleteLiveCallbackTemplateResponse"/></returns>
public Task<DeleteLiveCallbackTemplateResponse> DeleteLiveCallbackTemplate(DeleteLiveCallbackTemplateRequest req)
{
return InternalRequestAsync<DeleteLiveCallbackTemplateResponse>(req, "DeleteLiveCallbackTemplate");
}
/// <summary>
/// 删除回调模板。
/// </summary>
/// <param name="req"><see cref="DeleteLiveCallbackTemplateRequest"/></param>
/// <returns><see cref="DeleteLiveCallbackTemplateResponse"/></returns>
public DeleteLiveCallbackTemplateResponse DeleteLiveCallbackTemplateSync(DeleteLiveCallbackTemplateRequest req)
{
return InternalRequestAsync<DeleteLiveCallbackTemplateResponse>(req, "DeleteLiveCallbackTemplate")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 删除已添加的直播域名
/// </summary>
/// <param name="req"><see cref="DeleteLiveDomainRequest"/></param>
/// <returns><see cref="DeleteLiveDomainResponse"/></returns>
public Task<DeleteLiveDomainResponse> DeleteLiveDomain(DeleteLiveDomainRequest req)
{
return InternalRequestAsync<DeleteLiveDomainResponse>(req, "DeleteLiveDomain");
}
/// <summary>
/// 删除已添加的直播域名
/// </summary>
/// <param name="req"><see cref="DeleteLiveDomainRequest"/></param>
/// <returns><see cref="DeleteLiveDomainResponse"/></returns>
public DeleteLiveDomainResponse DeleteLiveDomainSync(DeleteLiveDomainRequest req)
{
return InternalRequestAsync<DeleteLiveDomainResponse>(req, "DeleteLiveDomain")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 删除直播垫片规则。
/// </summary>
/// <param name="req"><see cref="DeleteLivePadRuleRequest"/></param>
/// <returns><see cref="DeleteLivePadRuleResponse"/></returns>
public Task<DeleteLivePadRuleResponse> DeleteLivePadRule(DeleteLivePadRuleRequest req)
{
return InternalRequestAsync<DeleteLivePadRuleResponse>(req, "DeleteLivePadRule");
}
/// <summary>
/// 删除直播垫片规则。
/// </summary>
/// <param name="req"><see cref="DeleteLivePadRuleRequest"/></param>
/// <returns><see cref="DeleteLivePadRuleResponse"/></returns>
public DeleteLivePadRuleResponse DeleteLivePadRuleSync(DeleteLivePadRuleRequest req)
{
return InternalRequestAsync<DeleteLivePadRuleResponse>(req, "DeleteLivePadRule")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 删除直播垫片模板。
/// </summary>
/// <param name="req"><see cref="DeleteLivePadTemplateRequest"/></param>
/// <returns><see cref="DeleteLivePadTemplateResponse"/></returns>
public Task<DeleteLivePadTemplateResponse> DeleteLivePadTemplate(DeleteLivePadTemplateRequest req)
{
return InternalRequestAsync<DeleteLivePadTemplateResponse>(req, "DeleteLivePadTemplate");
}
/// <summary>
/// 删除直播垫片模板。
/// </summary>
/// <param name="req"><see cref="DeleteLivePadTemplateRequest"/></param>
/// <returns><see cref="DeleteLivePadTemplateResponse"/></returns>
public DeleteLivePadTemplateResponse DeleteLivePadTemplateSync(DeleteLivePadTemplateRequest req)
{
return InternalRequestAsync<DeleteLivePadTemplateResponse>(req, "DeleteLivePadTemplate")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 删除接口 CreateLivePullStreamTask 创建的拉流任务。
/// 注意:
/// 1. 入参中的 TaskId 为 CreateLivePullStreamTask 接口创建时返回的TaskId。
/// 2. 也可通过 DescribeLivePullStreamTasks 进行查询创建的任务。
/// </summary>
/// <param name="req"><see cref="DeleteLivePullStreamTaskRequest"/></param>
/// <returns><see cref="DeleteLivePullStreamTaskResponse"/></returns>
public Task<DeleteLivePullStreamTaskResponse> DeleteLivePullStreamTask(DeleteLivePullStreamTaskRequest req)
{
return InternalRequestAsync<DeleteLivePullStreamTaskResponse>(req, "DeleteLivePullStreamTask");
}
/// <summary>
/// 删除接口 CreateLivePullStreamTask 创建的拉流任务。
/// 注意:
/// 1. 入参中的 TaskId 为 CreateLivePullStreamTask 接口创建时返回的TaskId。
/// 2. 也可通过 DescribeLivePullStreamTasks 进行查询创建的任务。
/// </summary>
/// <param name="req"><see cref="DeleteLivePullStreamTaskRequest"/></param>
/// <returns><see cref="DeleteLivePullStreamTaskResponse"/></returns>
public DeleteLivePullStreamTaskResponse DeleteLivePullStreamTaskSync(DeleteLivePullStreamTaskRequest req)
{
return InternalRequestAsync<DeleteLivePullStreamTaskResponse>(req, "DeleteLivePullStreamTask")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 注:DeleteLiveRecord 接口仅用于删除录制任务记录,不具备停止录制的功能,也不能删除正在进行中的录制。如果需要停止录制任务,请使用终止录制[StopLiveRecord](/document/product/267/30146) 接口。
/// </summary>
/// <param name="req"><see cref="DeleteLiveRecordRequest"/></param>
/// <returns><see cref="DeleteLiveRecordResponse"/></returns>
public Task<DeleteLiveRecordResponse> DeleteLiveRecord(DeleteLiveRecordRequest req)
{
return InternalRequestAsync<DeleteLiveRecordResponse>(req, "DeleteLiveRecord");
}
/// <summary>
/// 注:DeleteLiveRecord 接口仅用于删除录制任务记录,不具备停止录制的功能,也不能删除正在进行中的录制。如果需要停止录制任务,请使用终止录制[StopLiveRecord](/document/product/267/30146) 接口。
/// </summary>
/// <param name="req"><see cref="DeleteLiveRecordRequest"/></param>
/// <returns><see cref="DeleteLiveRecordResponse"/></returns>
public DeleteLiveRecordResponse DeleteLiveRecordSync(DeleteLiveRecordRequest req)
{
return InternalRequestAsync<DeleteLiveRecordResponse>(req, "DeleteLiveRecord")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 删除录制规则。
/// </summary>
/// <param name="req"><see cref="DeleteLiveRecordRuleRequest"/></param>
/// <returns><see cref="DeleteLiveRecordRuleResponse"/></returns>
public Task<DeleteLiveRecordRuleResponse> DeleteLiveRecordRule(DeleteLiveRecordRuleRequest req)
{
return InternalRequestAsync<DeleteLiveRecordRuleResponse>(req, "DeleteLiveRecordRule");
}
/// <summary>
/// 删除录制规则。
/// </summary>
/// <param name="req"><see cref="DeleteLiveRecordRuleRequest"/></param>
/// <returns><see cref="DeleteLiveRecordRuleResponse"/></returns>
public DeleteLiveRecordRuleResponse DeleteLiveRecordRuleSync(DeleteLiveRecordRuleRequest req)
{
return InternalRequestAsync<DeleteLiveRecordRuleResponse>(req, "DeleteLiveRecordRule")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 删除录制模板。
/// </summary>
/// <param name="req"><see cref="DeleteLiveRecordTemplateRequest"/></param>
/// <returns><see cref="DeleteLiveRecordTemplateResponse"/></returns>
public Task<DeleteLiveRecordTemplateResponse> DeleteLiveRecordTemplate(DeleteLiveRecordTemplateRequest req)
{
return InternalRequestAsync<DeleteLiveRecordTemplateResponse>(req, "DeleteLiveRecordTemplate");
}
/// <summary>
/// 删除录制模板。
/// </summary>
/// <param name="req"><see cref="DeleteLiveRecordTemplateRequest"/></param>
/// <returns><see cref="DeleteLiveRecordTemplateResponse"/></returns>
public DeleteLiveRecordTemplateResponse DeleteLiveRecordTemplateSync(DeleteLiveRecordTemplateRequest req)
{
return InternalRequestAsync<DeleteLiveRecordTemplateResponse>(req, "DeleteLiveRecordTemplate")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 删除截图规则。
/// </summary>
/// <param name="req"><see cref="DeleteLiveSnapshotRuleRequest"/></param>
/// <returns><see cref="DeleteLiveSnapshotRuleResponse"/></returns>
public Task<DeleteLiveSnapshotRuleResponse> DeleteLiveSnapshotRule(DeleteLiveSnapshotRuleRequest req)
{
return InternalRequestAsync<DeleteLiveSnapshotRuleResponse>(req, "DeleteLiveSnapshotRule");
}
/// <summary>
/// 删除截图规则。
/// </summary>
/// <param name="req"><see cref="DeleteLiveSnapshotRuleRequest"/></param>
/// <returns><see cref="DeleteLiveSnapshotRuleResponse"/></returns>
public DeleteLiveSnapshotRuleResponse DeleteLiveSnapshotRuleSync(DeleteLiveSnapshotRuleRequest req)
{
return InternalRequestAsync<DeleteLiveSnapshotRuleResponse>(req, "DeleteLiveSnapshotRule")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 删除截图模板
/// </summary>
/// <param name="req"><see cref="DeleteLiveSnapshotTemplateRequest"/></param>
/// <returns><see cref="DeleteLiveSnapshotTemplateResponse"/></returns>
public Task<DeleteLiveSnapshotTemplateResponse> DeleteLiveSnapshotTemplate(DeleteLiveSnapshotTemplateRequest req)
{
return InternalRequestAsync<DeleteLiveSnapshotTemplateResponse>(req, "DeleteLiveSnapshotTemplate");
}
/// <summary>
/// 删除截图模板
/// </summary>
/// <param name="req"><see cref="DeleteLiveSnapshotTemplateRequest"/></param>
/// <returns><see cref="DeleteLiveSnapshotTemplateResponse"/></returns>
public DeleteLiveSnapshotTemplateResponse DeleteLiveSnapshotTemplateSync(DeleteLiveSnapshotTemplateRequest req)
{
return InternalRequestAsync<DeleteLiveSnapshotTemplateResponse>(req, "DeleteLiveSnapshotTemplate")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 该接口用来删除直播流监播任务。
/// </summary>
/// <param name="req"><see cref="DeleteLiveStreamMonitorRequest"/></param>
/// <returns><see cref="DeleteLiveStreamMonitorResponse"/></returns>
public Task<DeleteLiveStreamMonitorResponse> DeleteLiveStreamMonitor(DeleteLiveStreamMonitorRequest req)
{
return InternalRequestAsync<DeleteLiveStreamMonitorResponse>(req, "DeleteLiveStreamMonitor");
}
/// <summary>
/// 该接口用来删除直播流监播任务。
/// </summary>
/// <param name="req"><see cref="DeleteLiveStreamMonitorRequest"/></param>
/// <returns><see cref="DeleteLiveStreamMonitorResponse"/></returns>
public DeleteLiveStreamMonitorResponse DeleteLiveStreamMonitorSync(DeleteLiveStreamMonitorRequest req)
{
return InternalRequestAsync<DeleteLiveStreamMonitorResponse>(req, "DeleteLiveStreamMonitor")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 删除直播时移规则。
/// </summary>
/// <param name="req"><see cref="DeleteLiveTimeShiftRuleRequest"/></param>
/// <returns><see cref="DeleteLiveTimeShiftRuleResponse"/></returns>
public Task<DeleteLiveTimeShiftRuleResponse> DeleteLiveTimeShiftRule(DeleteLiveTimeShiftRuleRequest req)
{
return InternalRequestAsync<DeleteLiveTimeShiftRuleResponse>(req, "DeleteLiveTimeShiftRule");
}
/// <summary>
/// 删除直播时移规则。
/// </summary>
/// <param name="req"><see cref="DeleteLiveTimeShiftRuleRequest"/></param>
/// <returns><see cref="DeleteLiveTimeShiftRuleResponse"/></returns>
public DeleteLiveTimeShiftRuleResponse DeleteLiveTimeShiftRuleSync(DeleteLiveTimeShiftRuleRequest req)
{
return InternalRequestAsync<DeleteLiveTimeShiftRuleResponse>(req, "DeleteLiveTimeShiftRule")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 删除直播时移模板。
/// </summary>
/// <param name="req"><see cref="DeleteLiveTimeShiftTemplateRequest"/></param>
/// <returns><see cref="DeleteLiveTimeShiftTemplateResponse"/></returns>
public Task<DeleteLiveTimeShiftTemplateResponse> DeleteLiveTimeShiftTemplate(DeleteLiveTimeShiftTemplateRequest req)
{
return InternalRequestAsync<DeleteLiveTimeShiftTemplateResponse>(req, "DeleteLiveTimeShiftTemplate");
}
/// <summary>
/// 删除直播时移模板。
/// </summary>
/// <param name="req"><see cref="DeleteLiveTimeShiftTemplateRequest"/></param>
/// <returns><see cref="DeleteLiveTimeShiftTemplateResponse"/></returns>
public DeleteLiveTimeShiftTemplateResponse DeleteLiveTimeShiftTemplateSync(DeleteLiveTimeShiftTemplateRequest req)
{
return InternalRequestAsync<DeleteLiveTimeShiftTemplateResponse>(req, "DeleteLiveTimeShiftTemplate")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 删除转码规则。
/// DomainName+AppName+StreamName+TemplateId唯一标识单个转码规则,如需删除需要强匹配。其中TemplateId必填,其余参数为空时也需要传空字符串进行强匹配。
/// </summary>
/// <param name="req"><see cref="DeleteLiveTranscodeRuleRequest"/></param>
/// <returns><see cref="DeleteLiveTranscodeRuleResponse"/></returns>
public Task<DeleteLiveTranscodeRuleResponse> DeleteLiveTranscodeRule(DeleteLiveTranscodeRuleRequest req)
{
return InternalRequestAsync<DeleteLiveTranscodeRuleResponse>(req, "DeleteLiveTranscodeRule");
}
/// <summary>
/// 删除转码规则。
/// DomainName+AppName+StreamName+TemplateId唯一标识单个转码规则,如需删除需要强匹配。其中TemplateId必填,其余参数为空时也需要传空字符串进行强匹配。
/// </summary>
/// <param name="req"><see cref="DeleteLiveTranscodeRuleRequest"/></param>
/// <returns><see cref="DeleteLiveTranscodeRuleResponse"/></returns>
public DeleteLiveTranscodeRuleResponse DeleteLiveTranscodeRuleSync(DeleteLiveTranscodeRuleRequest req)
{
return InternalRequestAsync<DeleteLiveTranscodeRuleResponse>(req, "DeleteLiveTranscodeRule")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 删除转码模板。
/// </summary>
/// <param name="req"><see cref="DeleteLiveTranscodeTemplateRequest"/></param>
/// <returns><see cref="DeleteLiveTranscodeTemplateResponse"/></returns>
public Task<DeleteLiveTranscodeTemplateResponse> DeleteLiveTranscodeTemplate(DeleteLiveTranscodeTemplateRequest req)
{
return InternalRequestAsync<DeleteLiveTranscodeTemplateResponse>(req, "DeleteLiveTranscodeTemplate");
}
/// <summary>
/// 删除转码模板。
/// </summary>
/// <param name="req"><see cref="DeleteLiveTranscodeTemplateRequest"/></param>
/// <returns><see cref="DeleteLiveTranscodeTemplateResponse"/></returns>
public DeleteLiveTranscodeTemplateResponse DeleteLiveTranscodeTemplateSync(DeleteLiveTranscodeTemplateRequest req)
{
return InternalRequestAsync<DeleteLiveTranscodeTemplateResponse>(req, "DeleteLiveTranscodeTemplate")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 删除水印。
/// </summary>
/// <param name="req"><see cref="DeleteLiveWatermarkRequest"/></param>
/// <returns><see cref="DeleteLiveWatermarkResponse"/></returns>
public Task<DeleteLiveWatermarkResponse> DeleteLiveWatermark(DeleteLiveWatermarkRequest req)
{
return InternalRequestAsync<DeleteLiveWatermarkResponse>(req, "DeleteLiveWatermark");
}
/// <summary>
/// 删除水印。
/// </summary>
/// <param name="req"><see cref="DeleteLiveWatermarkRequest"/></param>
/// <returns><see cref="DeleteLiveWatermarkResponse"/></returns>
public DeleteLiveWatermarkResponse DeleteLiveWatermarkSync(DeleteLiveWatermarkRequest req)
{
return InternalRequestAsync<DeleteLiveWatermarkResponse>(req, "DeleteLiveWatermark")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 删除水印规则
/// </summary>
/// <param name="req"><see cref="DeleteLiveWatermarkRuleRequest"/></param>
/// <returns><see cref="DeleteLiveWatermarkRuleResponse"/></returns>
public Task<DeleteLiveWatermarkRuleResponse> DeleteLiveWatermarkRule(DeleteLiveWatermarkRuleRequest req)
{
return InternalRequestAsync<DeleteLiveWatermarkRuleResponse>(req, "DeleteLiveWatermarkRule");
}
/// <summary>
/// 删除水印规则
/// </summary>
/// <param name="req"><see cref="DeleteLiveWatermarkRuleRequest"/></param>
/// <returns><see cref="DeleteLiveWatermarkRuleResponse"/></returns>
public DeleteLiveWatermarkRuleResponse DeleteLiveWatermarkRuleSync(DeleteLiveWatermarkRuleRequest req)
{
return InternalRequestAsync<DeleteLiveWatermarkRuleResponse>(req, "DeleteLiveWatermarkRule")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 删除直播拉流配置。该接口已下线,请使用新接口 DeleteLivePullStreamTask。
/// </summary>
/// <param name="req"><see cref="DeletePullStreamConfigRequest"/></param>
/// <returns><see cref="DeletePullStreamConfigResponse"/></returns>
public Task<DeletePullStreamConfigResponse> DeletePullStreamConfig(DeletePullStreamConfigRequest req)
{
return InternalRequestAsync<DeletePullStreamConfigResponse>(req, "DeletePullStreamConfig");
}
/// <summary>
/// 删除直播拉流配置。该接口已下线,请使用新接口 DeleteLivePullStreamTask。
/// </summary>
/// <param name="req"><see cref="DeletePullStreamConfigRequest"/></param>
/// <returns><see cref="DeletePullStreamConfigResponse"/></returns>
public DeletePullStreamConfigResponse DeletePullStreamConfigSync(DeletePullStreamConfigRequest req)
{
return InternalRequestAsync<DeletePullStreamConfigResponse>(req, "DeletePullStreamConfig")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 删除录制任务配置。删除操作不影响正在运行当中的任务,仅对删除之后新的推流有效。
/// </summary>
/// <param name="req"><see cref="DeleteRecordTaskRequest"/></param>
/// <returns><see cref="DeleteRecordTaskResponse"/></returns>
public Task<DeleteRecordTaskResponse> DeleteRecordTask(DeleteRecordTaskRequest req)
{
return InternalRequestAsync<DeleteRecordTaskResponse>(req, "DeleteRecordTask");
}
/// <summary>
/// 删除录制任务配置。删除操作不影响正在运行当中的任务,仅对删除之后新的推流有效。
/// </summary>
/// <param name="req"><see cref="DeleteRecordTaskRequest"/></param>
/// <returns><see cref="DeleteRecordTaskResponse"/></returns>
public DeleteRecordTaskResponse DeleteRecordTaskSync(DeleteRecordTaskRequest req)
{
return InternalRequestAsync<DeleteRecordTaskResponse>(req, "DeleteRecordTask")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 删除截图任务配置。删除操作不影响正在运行当中的任务,仅对删除之后新的推流有效。
/// </summary>
/// <param name="req"><see cref="DeleteScreenshotTaskRequest"/></param>
/// <returns><see cref="DeleteScreenshotTaskResponse"/></returns>
public Task<DeleteScreenshotTaskResponse> DeleteScreenshotTask(DeleteScreenshotTaskRequest req)
{
return InternalRequestAsync<DeleteScreenshotTaskResponse>(req, "DeleteScreenshotTask");
}
/// <summary>
/// 删除截图任务配置。删除操作不影响正在运行当中的任务,仅对删除之后新的推流有效。
/// </summary>
/// <param name="req"><see cref="DeleteScreenshotTaskRequest"/></param>
/// <returns><see cref="DeleteScreenshotTaskResponse"/></returns>
public DeleteScreenshotTaskResponse DeleteScreenshotTaskSync(DeleteScreenshotTaskRequest req)
{
return InternalRequestAsync<DeleteScreenshotTaskResponse>(req, "DeleteScreenshotTask")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 该接口为监控数据接口,数据采集及统计方式与计费数据不同,仅供运营分析使用,不能用于计费对账参考。
/// 输入某个时间点(1分钟维度),查询该时间点所有流的下行信息。
/// </summary>
/// <param name="req"><see cref="DescribeAllStreamPlayInfoListRequest"/></param>
/// <returns><see cref="DescribeAllStreamPlayInfoListResponse"/></returns>
public Task<DescribeAllStreamPlayInfoListResponse> DescribeAllStreamPlayInfoList(DescribeAllStreamPlayInfoListRequest req)
{
return InternalRequestAsync<DescribeAllStreamPlayInfoListResponse>(req, "DescribeAllStreamPlayInfoList");
}
/// <summary>
/// 该接口为监控数据接口,数据采集及统计方式与计费数据不同,仅供运营分析使用,不能用于计费对账参考。
/// 输入某个时间点(1分钟维度),查询该时间点所有流的下行信息。
/// </summary>
/// <param name="req"><see cref="DescribeAllStreamPlayInfoListRequest"/></param>
/// <returns><see cref="DescribeAllStreamPlayInfoListResponse"/></returns>
public DescribeAllStreamPlayInfoListResponse DescribeAllStreamPlayInfoListSync(DescribeAllStreamPlayInfoListRequest req)
{
return InternalRequestAsync<DescribeAllStreamPlayInfoListResponse>(req, "DescribeAllStreamPlayInfoList")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 海外分区直播播放带宽和流量数据查询。
/// </summary>
/// <param name="req"><see cref="DescribeAreaBillBandwidthAndFluxListRequest"/></param>
/// <returns><see cref="DescribeAreaBillBandwidthAndFluxListResponse"/></returns>
public Task<DescribeAreaBillBandwidthAndFluxListResponse> DescribeAreaBillBandwidthAndFluxList(DescribeAreaBillBandwidthAndFluxListRequest req)
{
return InternalRequestAsync<DescribeAreaBillBandwidthAndFluxListResponse>(req, "DescribeAreaBillBandwidthAndFluxList");
}
/// <summary>
/// 海外分区直播播放带宽和流量数据查询。
/// </summary>
/// <param name="req"><see cref="DescribeAreaBillBandwidthAndFluxListRequest"/></param>
/// <returns><see cref="DescribeAreaBillBandwidthAndFluxListResponse"/></returns>
public DescribeAreaBillBandwidthAndFluxListResponse DescribeAreaBillBandwidthAndFluxListSync(DescribeAreaBillBandwidthAndFluxListRequest req)
{
return InternalRequestAsync<DescribeAreaBillBandwidthAndFluxListResponse>(req, "DescribeAreaBillBandwidthAndFluxList")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 返回正在直播中的流列表。适用于推流成功后查询在线流信息。
///
/// 注意:
/// 1. 该接口仅提供辅助查询在线流列表功能,业务重要场景不可强依赖该接口。
/// 2. 该接口仅适用于流数少于2万路的情况,对于流数较大用户请联系售后。
/// </summary>
/// <param name="req"><see cref="DescribeBackupStreamListRequest"/></param>
/// <returns><see cref="DescribeBackupStreamListResponse"/></returns>
public Task<DescribeBackupStreamListResponse> DescribeBackupStreamList(DescribeBackupStreamListRequest req)
{
return InternalRequestAsync<DescribeBackupStreamListResponse>(req, "DescribeBackupStreamList");
}
/// <summary>
/// 返回正在直播中的流列表。适用于推流成功后查询在线流信息。
///
/// 注意:
/// 1. 该接口仅提供辅助查询在线流列表功能,业务重要场景不可强依赖该接口。
/// 2. 该接口仅适用于流数少于2万路的情况,对于流数较大用户请联系售后。
/// </summary>
/// <param name="req"><see cref="DescribeBackupStreamListRequest"/></param>
/// <returns><see cref="DescribeBackupStreamListResponse"/></returns>
public DescribeBackupStreamListResponse DescribeBackupStreamListSync(DescribeBackupStreamListRequest req)
{
return InternalRequestAsync<DescribeBackupStreamListResponse>(req, "DescribeBackupStreamList")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 直播播放带宽和流量数据查询。
/// </summary>
/// <param name="req"><see cref="DescribeBillBandwidthAndFluxListRequest"/></param>
/// <returns><see cref="DescribeBillBandwidthAndFluxListResponse"/></returns>
public Task<DescribeBillBandwidthAndFluxListResponse> DescribeBillBandwidthAndFluxList(DescribeBillBandwidthAndFluxListRequest req)
{
return InternalRequestAsync<DescribeBillBandwidthAndFluxListResponse>(req, "DescribeBillBandwidthAndFluxList");
}
/// <summary>
/// 直播播放带宽和流量数据查询。
/// </summary>
/// <param name="req"><see cref="DescribeBillBandwidthAndFluxListRequest"/></param>
/// <returns><see cref="DescribeBillBandwidthAndFluxListResponse"/></returns>
public DescribeBillBandwidthAndFluxListResponse DescribeBillBandwidthAndFluxListSync(DescribeBillBandwidthAndFluxListRequest req)
{
return InternalRequestAsync<DescribeBillBandwidthAndFluxListResponse>(req, "DescribeBillBandwidthAndFluxList")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 该接口为监控数据接口,数据采集及统计方式与计费数据不同,仅供运营分析使用,不能用于计费对账参考。
/// 用于查询回调事件。
/// </summary>
/// <param name="req"><see cref="DescribeCallbackRecordsListRequest"/></param>
/// <returns><see cref="DescribeCallbackRecordsListResponse"/></returns>
public Task<DescribeCallbackRecordsListResponse> DescribeCallbackRecordsList(DescribeCallbackRecordsListRequest req)
{
return InternalRequestAsync<DescribeCallbackRecordsListResponse>(req, "DescribeCallbackRecordsList");
}
/// <summary>
/// 该接口为监控数据接口,数据采集及统计方式与计费数据不同,仅供运营分析使用,不能用于计费对账参考。
/// 用于查询回调事件。
/// </summary>
/// <param name="req"><see cref="DescribeCallbackRecordsListRequest"/></param>
/// <returns><see cref="DescribeCallbackRecordsListResponse"/></returns>
public DescribeCallbackRecordsListResponse DescribeCallbackRecordsListSync(DescribeCallbackRecordsListRequest req)
{
return InternalRequestAsync<DescribeCallbackRecordsListResponse>(req, "DescribeCallbackRecordsList")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 查询并发录制路数,对慢直播和普通直播适用。
/// </summary>
/// <param name="req"><see cref="DescribeConcurrentRecordStreamNumRequest"/></param>
/// <returns><see cref="DescribeConcurrentRecordStreamNumResponse"/></returns>
public Task<DescribeConcurrentRecordStreamNumResponse> DescribeConcurrentRecordStreamNum(DescribeConcurrentRecordStreamNumRequest req)
{
return InternalRequestAsync<DescribeConcurrentRecordStreamNumResponse>(req, "DescribeConcurrentRecordStreamNum");
}
/// <summary>
/// 查询并发录制路数,对慢直播和普通直播适用。
/// </summary>
/// <param name="req"><see cref="DescribeConcurrentRecordStreamNumRequest"/></param>
/// <returns><see cref="DescribeConcurrentRecordStreamNumResponse"/></returns>
public DescribeConcurrentRecordStreamNumResponse DescribeConcurrentRecordStreamNumSync(DescribeConcurrentRecordStreamNumRequest req)
{
return InternalRequestAsync<DescribeConcurrentRecordStreamNumResponse>(req, "DescribeConcurrentRecordStreamNum")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 查询直播转推计费带宽,查询时间范围最大支持3个月内的数据,时间跨度最长31天。
/// </summary>
/// <param name="req"><see cref="DescribeDeliverBandwidthListRequest"/></param>
/// <returns><see cref="DescribeDeliverBandwidthListResponse"/></returns>
public Task<DescribeDeliverBandwidthListResponse> DescribeDeliverBandwidthList(DescribeDeliverBandwidthListRequest req)
{
return InternalRequestAsync<DescribeDeliverBandwidthListResponse>(req, "DescribeDeliverBandwidthList");
}
/// <summary>
/// 查询直播转推计费带宽,查询时间范围最大支持3个月内的数据,时间跨度最长31天。
/// </summary>
/// <param name="req"><see cref="DescribeDeliverBandwidthListRequest"/></param>
/// <returns><see cref="DescribeDeliverBandwidthListResponse"/></returns>
public DescribeDeliverBandwidthListResponse DescribeDeliverBandwidthListSync(DescribeDeliverBandwidthListRequest req)
{
return InternalRequestAsync<DescribeDeliverBandwidthListResponse>(req, "DescribeDeliverBandwidthList")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 批量获取转推日志的URL。
/// </summary>
/// <param name="req"><see cref="DescribeDeliverLogDownListRequest"/></param>
/// <returns><see cref="DescribeDeliverLogDownListResponse"/></returns>
public Task<DescribeDeliverLogDownListResponse> DescribeDeliverLogDownList(DescribeDeliverLogDownListRequest req)
{
return InternalRequestAsync<DescribeDeliverLogDownListResponse>(req, "DescribeDeliverLogDownList");
}
/// <summary>
/// 批量获取转推日志的URL。
/// </summary>
/// <param name="req"><see cref="DescribeDeliverLogDownListRequest"/></param>
/// <returns><see cref="DescribeDeliverLogDownListResponse"/></returns>
public DescribeDeliverLogDownListResponse DescribeDeliverLogDownListSync(DescribeDeliverLogDownListRequest req)
{
return InternalRequestAsync<DescribeDeliverLogDownListResponse>(req, "DescribeDeliverLogDownList")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 该接口为监控数据接口,数据采集及统计方式与计费数据不同,仅供运营分析使用,不能用于计费对账参考。
/// 查询按省份和运营商分组的下行播放数据。
/// </summary>
/// <param name="req"><see cref="DescribeGroupProIspPlayInfoListRequest"/></param>
/// <returns><see cref="DescribeGroupProIspPlayInfoListResponse"/></returns>
public Task<DescribeGroupProIspPlayInfoListResponse> DescribeGroupProIspPlayInfoList(DescribeGroupProIspPlayInfoListRequest req)
{
return InternalRequestAsync<DescribeGroupProIspPlayInfoListResponse>(req, "DescribeGroupProIspPlayInfoList");
}
/// <summary>
/// 该接口为监控数据接口,数据采集及统计方式与计费数据不同,仅供运营分析使用,不能用于计费对账参考。
/// 查询按省份和运营商分组的下行播放数据。
/// </summary>
/// <param name="req"><see cref="DescribeGroupProIspPlayInfoListRequest"/></param>
/// <returns><see cref="DescribeGroupProIspPlayInfoListResponse"/></returns>
public DescribeGroupProIspPlayInfoListResponse DescribeGroupProIspPlayInfoListSync(DescribeGroupProIspPlayInfoListRequest req)
{
return InternalRequestAsync<DescribeGroupProIspPlayInfoListResponse>(req, "DescribeGroupProIspPlayInfoList")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 该接口为监控数据接口,数据采集及统计方式与计费数据不同,仅供运营分析使用,不能用于计费对账参考。
/// 查询某段时间内5分钟粒度的各播放http状态码的个数。
/// 备注:数据延迟1小时,如10:00-10:59点的数据12点才能查到。
/// </summary>
/// <param name="req"><see cref="DescribeHttpStatusInfoListRequest"/></param>
/// <returns><see cref="DescribeHttpStatusInfoListResponse"/></returns>
public Task<DescribeHttpStatusInfoListResponse> DescribeHttpStatusInfoList(DescribeHttpStatusInfoListRequest req)
{
return InternalRequestAsync<DescribeHttpStatusInfoListResponse>(req, "DescribeHttpStatusInfoList");
}
/// <summary>
/// 该接口为监控数据接口,数据采集及统计方式与计费数据不同,仅供运营分析使用,不能用于计费对账参考。
/// 查询某段时间内5分钟粒度的各播放http状态码的个数。
/// 备注:数据延迟1小时,如10:00-10:59点的数据12点才能查到。
/// </summary>
/// <param name="req"><see cref="DescribeHttpStatusInfoListRequest"/></param>
/// <returns><see cref="DescribeHttpStatusInfoListResponse"/></returns>
public DescribeHttpStatusInfoListResponse DescribeHttpStatusInfoListSync(DescribeHttpStatusInfoListRequest req)
{
return InternalRequestAsync<DescribeHttpStatusInfoListResponse>(req, "DescribeHttpStatusInfoList")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 获取回调规则列表
/// </summary>
/// <param name="req"><see cref="DescribeLiveCallbackRulesRequest"/></param>
/// <returns><see cref="DescribeLiveCallbackRulesResponse"/></returns>
public Task<DescribeLiveCallbackRulesResponse> DescribeLiveCallbackRules(DescribeLiveCallbackRulesRequest req)
{
return InternalRequestAsync<DescribeLiveCallbackRulesResponse>(req, "DescribeLiveCallbackRules");
}
/// <summary>
/// 获取回调规则列表
/// </summary>
/// <param name="req"><see cref="DescribeLiveCallbackRulesRequest"/></param>
/// <returns><see cref="DescribeLiveCallbackRulesResponse"/></returns>
public DescribeLiveCallbackRulesResponse DescribeLiveCallbackRulesSync(DescribeLiveCallbackRulesRequest req)
{
return InternalRequestAsync<DescribeLiveCallbackRulesResponse>(req, "DescribeLiveCallbackRules")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 获取单个回调模板。
/// </summary>
/// <param name="req"><see cref="DescribeLiveCallbackTemplateRequest"/></param>
/// <returns><see cref="DescribeLiveCallbackTemplateResponse"/></returns>
public Task<DescribeLiveCallbackTemplateResponse> DescribeLiveCallbackTemplate(DescribeLiveCallbackTemplateRequest req)
{
return InternalRequestAsync<DescribeLiveCallbackTemplateResponse>(req, "DescribeLiveCallbackTemplate");
}
/// <summary>
/// 获取单个回调模板。
/// </summary>
/// <param name="req"><see cref="DescribeLiveCallbackTemplateRequest"/></param>
/// <returns><see cref="DescribeLiveCallbackTemplateResponse"/></returns>
public DescribeLiveCallbackTemplateResponse DescribeLiveCallbackTemplateSync(DescribeLiveCallbackTemplateRequest req)
{
return InternalRequestAsync<DescribeLiveCallbackTemplateResponse>(req, "DescribeLiveCallbackTemplate")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 获取回调模板列表
/// </summary>
/// <param name="req"><see cref="DescribeLiveCallbackTemplatesRequest"/></param>
/// <returns><see cref="DescribeLiveCallbackTemplatesResponse"/></returns>
public Task<DescribeLiveCallbackTemplatesResponse> DescribeLiveCallbackTemplates(DescribeLiveCallbackTemplatesRequest req)
{
return InternalRequestAsync<DescribeLiveCallbackTemplatesResponse>(req, "DescribeLiveCallbackTemplates");
}
/// <summary>
/// 获取回调模板列表
/// </summary>
/// <param name="req"><see cref="DescribeLiveCallbackTemplatesRequest"/></param>
/// <returns><see cref="DescribeLiveCallbackTemplatesResponse"/></returns>
public DescribeLiveCallbackTemplatesResponse DescribeLiveCallbackTemplatesSync(DescribeLiveCallbackTemplatesRequest req)
{
return InternalRequestAsync<DescribeLiveCallbackTemplatesResponse>(req, "DescribeLiveCallbackTemplates")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 获取证书信息
/// </summary>
/// <param name="req"><see cref="DescribeLiveCertRequest"/></param>
/// <returns><see cref="DescribeLiveCertResponse"/></returns>
public Task<DescribeLiveCertResponse> DescribeLiveCert(DescribeLiveCertRequest req)
{
return InternalRequestAsync<DescribeLiveCertResponse>(req, "DescribeLiveCert");
}
/// <summary>
/// 获取证书信息
/// </summary>
/// <param name="req"><see cref="DescribeLiveCertRequest"/></param>
/// <returns><see cref="DescribeLiveCertResponse"/></returns>
public DescribeLiveCertResponse DescribeLiveCertSync(DescribeLiveCertRequest req)
{
return InternalRequestAsync<DescribeLiveCertResponse>(req, "DescribeLiveCert")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 获取证书信息列表
/// </summary>
/// <param name="req"><see cref="DescribeLiveCertsRequest"/></param>
/// <returns><see cref="DescribeLiveCertsResponse"/></returns>
public Task<DescribeLiveCertsResponse> DescribeLiveCerts(DescribeLiveCertsRequest req)
{
return InternalRequestAsync<DescribeLiveCertsResponse>(req, "DescribeLiveCerts");
}
/// <summary>
/// 获取证书信息列表
/// </summary>
/// <param name="req"><see cref="DescribeLiveCertsRequest"/></param>
/// <returns><see cref="DescribeLiveCertsResponse"/></returns>
public DescribeLiveCertsResponse DescribeLiveCertsSync(DescribeLiveCertsRequest req)
{
return InternalRequestAsync<DescribeLiveCertsResponse>(req, "DescribeLiveCerts")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 获取直播延播列表。
/// </summary>
/// <param name="req"><see cref="DescribeLiveDelayInfoListRequest"/></param>
/// <returns><see cref="DescribeLiveDelayInfoListResponse"/></returns>
public Task<DescribeLiveDelayInfoListResponse> DescribeLiveDelayInfoList(DescribeLiveDelayInfoListRequest req)
{
return InternalRequestAsync<DescribeLiveDelayInfoListResponse>(req, "DescribeLiveDelayInfoList");
}
/// <summary>
/// 获取直播延播列表。
/// </summary>
/// <param name="req"><see cref="DescribeLiveDelayInfoListRequest"/></param>
/// <returns><see cref="DescribeLiveDelayInfoListResponse"/></returns>
public DescribeLiveDelayInfoListResponse DescribeLiveDelayInfoListSync(DescribeLiveDelayInfoListRequest req)
{
return InternalRequestAsync<DescribeLiveDelayInfoListResponse>(req, "DescribeLiveDelayInfoList")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 查询直播域名信息。
/// </summary>
/// <param name="req"><see cref="DescribeLiveDomainRequest"/></param>
/// <returns><see cref="DescribeLiveDomainResponse"/></returns>
public Task<DescribeLiveDomainResponse> DescribeLiveDomain(DescribeLiveDomainRequest req)
{
return InternalRequestAsync<DescribeLiveDomainResponse>(req, "DescribeLiveDomain");
}
/// <summary>
/// 查询直播域名信息。
/// </summary>
/// <param name="req"><see cref="DescribeLiveDomainRequest"/></param>
/// <returns><see cref="DescribeLiveDomainResponse"/></returns>
public DescribeLiveDomainResponse DescribeLiveDomainSync(DescribeLiveDomainRequest req)
{
return InternalRequestAsync<DescribeLiveDomainResponse>(req, "DescribeLiveDomain")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 获取域名证书信息。
/// </summary>
/// <param name="req"><see cref="DescribeLiveDomainCertRequest"/></param>
/// <returns><see cref="DescribeLiveDomainCertResponse"/></returns>
public Task<DescribeLiveDomainCertResponse> DescribeLiveDomainCert(DescribeLiveDomainCertRequest req)
{
return InternalRequestAsync<DescribeLiveDomainCertResponse>(req, "DescribeLiveDomainCert");
}
/// <summary>
/// 获取域名证书信息。
/// </summary>
/// <param name="req"><see cref="DescribeLiveDomainCertRequest"/></param>
/// <returns><see cref="DescribeLiveDomainCertResponse"/></returns>
public DescribeLiveDomainCertResponse DescribeLiveDomainCertSync(DescribeLiveDomainCertRequest req)
{
return InternalRequestAsync<DescribeLiveDomainCertResponse>(req, "DescribeLiveDomainCert")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 查询绑定证书的域名列表。
/// </summary>
/// <param name="req"><see cref="DescribeLiveDomainCertBindingsRequest"/></param>
/// <returns><see cref="DescribeLiveDomainCertBindingsResponse"/></returns>
public Task<DescribeLiveDomainCertBindingsResponse> DescribeLiveDomainCertBindings(DescribeLiveDomainCertBindingsRequest req)
{
return InternalRequestAsync<DescribeLiveDomainCertBindingsResponse>(req, "DescribeLiveDomainCertBindings");
}
/// <summary>
/// 查询绑定证书的域名列表。
/// </summary>
/// <param name="req"><see cref="DescribeLiveDomainCertBindingsRequest"/></param>
/// <returns><see cref="DescribeLiveDomainCertBindingsResponse"/></returns>
public DescribeLiveDomainCertBindingsResponse DescribeLiveDomainCertBindingsSync(DescribeLiveDomainCertBindingsRequest req)
{
return InternalRequestAsync<DescribeLiveDomainCertBindingsResponse>(req, "DescribeLiveDomainCertBindings")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 该接口为监控数据接口,数据采集及统计方式与计费数据不同,仅供运营分析使用,不能用于计费对账参考。
/// 查询实时的域名维度下行播放数据,由于数据处理有耗时,接口默认查询4分钟前的准实时数据。
/// </summary>
/// <param name="req"><see cref="DescribeLiveDomainPlayInfoListRequest"/></param>
/// <returns><see cref="DescribeLiveDomainPlayInfoListResponse"/></returns>
public Task<DescribeLiveDomainPlayInfoListResponse> DescribeLiveDomainPlayInfoList(DescribeLiveDomainPlayInfoListRequest req)
{
return InternalRequestAsync<DescribeLiveDomainPlayInfoListResponse>(req, "DescribeLiveDomainPlayInfoList");
}
/// <summary>
/// 该接口为监控数据接口,数据采集及统计方式与计费数据不同,仅供运营分析使用,不能用于计费对账参考。
/// 查询实时的域名维度下行播放数据,由于数据处理有耗时,接口默认查询4分钟前的准实时数据。
/// </summary>
/// <param name="req"><see cref="DescribeLiveDomainPlayInfoListRequest"/></param>
/// <returns><see cref="DescribeLiveDomainPlayInfoListResponse"/></returns>
public DescribeLiveDomainPlayInfoListResponse DescribeLiveDomainPlayInfoListSync(DescribeLiveDomainPlayInfoListRequest req)
{
return InternalRequestAsync<DescribeLiveDomainPlayInfoListResponse>(req, "DescribeLiveDomainPlayInfoList")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 查询直播域名 Referer 黑白名单配置。
/// 由于 Referer 信息包含在 http 协议中,在开启配置后,播放协议为 rtmp 或 WebRTC 不会校验 Referer 配置,仍可正常播放。如需配置 Referer 鉴权建议使用 http-flv 或 http-hls 协议播放。
/// </summary>
/// <param name="req"><see cref="DescribeLiveDomainRefererRequest"/></param>
/// <returns><see cref="DescribeLiveDomainRefererResponse"/></returns>
public Task<DescribeLiveDomainRefererResponse> DescribeLiveDomainReferer(DescribeLiveDomainRefererRequest req)
{
return InternalRequestAsync<DescribeLiveDomainRefererResponse>(req, "DescribeLiveDomainReferer");
}
/// <summary>
/// 查询直播域名 Referer 黑白名单配置。
/// 由于 Referer 信息包含在 http 协议中,在开启配置后,播放协议为 rtmp 或 WebRTC 不会校验 Referer 配置,仍可正常播放。如需配置 Referer 鉴权建议使用 http-flv 或 http-hls 协议播放。
/// </summary>
/// <param name="req"><see cref="DescribeLiveDomainRefererRequest"/></param>
/// <returns><see cref="DescribeLiveDomainRefererResponse"/></returns>
public DescribeLiveDomainRefererResponse DescribeLiveDomainRefererSync(DescribeLiveDomainRefererRequest req)
{
return InternalRequestAsync<DescribeLiveDomainRefererResponse>(req, "DescribeLiveDomainReferer")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 根据域名状态、类型等信息查询用户的域名信息。
/// </summary>
/// <param name="req"><see cref="DescribeLiveDomainsRequest"/></param>
/// <returns><see cref="DescribeLiveDomainsResponse"/></returns>
public Task<DescribeLiveDomainsResponse> DescribeLiveDomains(DescribeLiveDomainsRequest req)
{
return InternalRequestAsync<DescribeLiveDomainsResponse>(req, "DescribeLiveDomains");
}
/// <summary>
/// 根据域名状态、类型等信息查询用户的域名信息。
/// </summary>
/// <param name="req"><see cref="DescribeLiveDomainsRequest"/></param>
/// <returns><see cref="DescribeLiveDomainsResponse"/></returns>
public DescribeLiveDomainsResponse DescribeLiveDomainsSync(DescribeLiveDomainsRequest req)
{
return InternalRequestAsync<DescribeLiveDomainsResponse>(req, "DescribeLiveDomains")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 获取禁推流列表。
///
/// 注意:该接口仅作为直播辅助查询接口,重要业务场景不可强依赖该接口。
/// </summary>
/// <param name="req"><see cref="DescribeLiveForbidStreamListRequest"/></param>
/// <returns><see cref="DescribeLiveForbidStreamListResponse"/></returns>
public Task<DescribeLiveForbidStreamListResponse> DescribeLiveForbidStreamList(DescribeLiveForbidStreamListRequest req)
{
return InternalRequestAsync<DescribeLiveForbidStreamListResponse>(req, "DescribeLiveForbidStreamList");
}
/// <summary>
/// 获取禁推流列表。
///
/// 注意:该接口仅作为直播辅助查询接口,重要业务场景不可强依赖该接口。
/// </summary>
/// <param name="req"><see cref="DescribeLiveForbidStreamListRequest"/></param>
/// <returns><see cref="DescribeLiveForbidStreamListResponse"/></returns>
public DescribeLiveForbidStreamListResponse DescribeLiveForbidStreamListSync(DescribeLiveForbidStreamListRequest req)
{
return InternalRequestAsync<DescribeLiveForbidStreamListResponse>(req, "DescribeLiveForbidStreamList")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 查询用户套餐包总量、使用量、剩余量、包状态、购买时间和过期时间等。
/// </summary>
/// <param name="req"><see cref="DescribeLivePackageInfoRequest"/></param>
/// <returns><see cref="DescribeLivePackageInfoResponse"/></returns>
public Task<DescribeLivePackageInfoResponse> DescribeLivePackageInfo(DescribeLivePackageInfoRequest req)
{
return InternalRequestAsync<DescribeLivePackageInfoResponse>(req, "DescribeLivePackageInfo");
}
/// <summary>
/// 查询用户套餐包总量、使用量、剩余量、包状态、购买时间和过期时间等。
/// </summary>
/// <param name="req"><see cref="DescribeLivePackageInfoRequest"/></param>
/// <returns><see cref="DescribeLivePackageInfoResponse"/></returns>
public DescribeLivePackageInfoResponse DescribeLivePackageInfoSync(DescribeLivePackageInfoRequest req)
{
return InternalRequestAsync<DescribeLivePackageInfoResponse>(req, "DescribeLivePackageInfo")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 使用该接口查询垫片流。垫片流状态更新存在一定延迟,可间隔30秒以上查询,避免频繁查询该接口。
/// </summary>
/// <param name="req"><see cref="DescribeLivePadProcessorListRequest"/></param>
/// <returns><see cref="DescribeLivePadProcessorListResponse"/></returns>
public Task<DescribeLivePadProcessorListResponse> DescribeLivePadProcessorList(DescribeLivePadProcessorListRequest req)
{
return InternalRequestAsync<DescribeLivePadProcessorListResponse>(req, "DescribeLivePadProcessorList");
}
/// <summary>
/// 使用该接口查询垫片流。垫片流状态更新存在一定延迟,可间隔30秒以上查询,避免频繁查询该接口。
/// </summary>
/// <param name="req"><see cref="DescribeLivePadProcessorListRequest"/></param>
/// <returns><see cref="DescribeLivePadProcessorListResponse"/></returns>
public DescribeLivePadProcessorListResponse DescribeLivePadProcessorListSync(DescribeLivePadProcessorListRequest req)
{
return InternalRequestAsync<DescribeLivePadProcessorListResponse>(req, "DescribeLivePadProcessorList")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 获取直播垫片规则列表。
/// </summary>
/// <param name="req"><see cref="DescribeLivePadRulesRequest"/></param>
/// <returns><see cref="DescribeLivePadRulesResponse"/></returns>
public Task<DescribeLivePadRulesResponse> DescribeLivePadRules(DescribeLivePadRulesRequest req)
{
return InternalRequestAsync<DescribeLivePadRulesResponse>(req, "DescribeLivePadRules");
}
/// <summary>
/// 获取直播垫片规则列表。
/// </summary>
/// <param name="req"><see cref="DescribeLivePadRulesRequest"/></param>
/// <returns><see cref="DescribeLivePadRulesResponse"/></returns>
public DescribeLivePadRulesResponse DescribeLivePadRulesSync(DescribeLivePadRulesRequest req)
{
return InternalRequestAsync<DescribeLivePadRulesResponse>(req, "DescribeLivePadRules")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 获取单个直播垫片模板
/// </summary>
/// <param name="req"><see cref="DescribeLivePadTemplateRequest"/></param>
/// <returns><see cref="DescribeLivePadTemplateResponse"/></returns>
public Task<DescribeLivePadTemplateResponse> DescribeLivePadTemplate(DescribeLivePadTemplateRequest req)
{
return InternalRequestAsync<DescribeLivePadTemplateResponse>(req, "DescribeLivePadTemplate");
}
/// <summary>
/// 获取单个直播垫片模板
/// </summary>
/// <param name="req"><see cref="DescribeLivePadTemplateRequest"/></param>
/// <returns><see cref="DescribeLivePadTemplateResponse"/></returns>
public DescribeLivePadTemplateResponse DescribeLivePadTemplateSync(DescribeLivePadTemplateRequest req)
{
return InternalRequestAsync<DescribeLivePadTemplateResponse>(req, "DescribeLivePadTemplate")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 获取直播垫片模板。
/// </summary>
/// <param name="req"><see cref="DescribeLivePadTemplatesRequest"/></param>
/// <returns><see cref="DescribeLivePadTemplatesResponse"/></returns>
public Task<DescribeLivePadTemplatesResponse> DescribeLivePadTemplates(DescribeLivePadTemplatesRequest req)
{
return InternalRequestAsync<DescribeLivePadTemplatesResponse>(req, "DescribeLivePadTemplates");
}
/// <summary>
/// 获取直播垫片模板。
/// </summary>
/// <param name="req"><see cref="DescribeLivePadTemplatesRequest"/></param>
/// <returns><see cref="DescribeLivePadTemplatesResponse"/></returns>
public DescribeLivePadTemplatesResponse DescribeLivePadTemplatesSync(DescribeLivePadTemplatesRequest req)
{
return InternalRequestAsync<DescribeLivePadTemplatesResponse>(req, "DescribeLivePadTemplates")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 查询播放鉴权key。
/// </summary>
/// <param name="req"><see cref="DescribeLivePlayAuthKeyRequest"/></param>
/// <returns><see cref="DescribeLivePlayAuthKeyResponse"/></returns>
public Task<DescribeLivePlayAuthKeyResponse> DescribeLivePlayAuthKey(DescribeLivePlayAuthKeyRequest req)
{
return InternalRequestAsync<DescribeLivePlayAuthKeyResponse>(req, "DescribeLivePlayAuthKey");
}
/// <summary>
/// 查询播放鉴权key。
/// </summary>
/// <param name="req"><see cref="DescribeLivePlayAuthKeyRequest"/></param>
/// <returns><see cref="DescribeLivePlayAuthKeyResponse"/></returns>
public DescribeLivePlayAuthKeyResponse DescribeLivePlayAuthKeySync(DescribeLivePlayAuthKeyRequest req)
{
return InternalRequestAsync<DescribeLivePlayAuthKeyResponse>(req, "DescribeLivePlayAuthKey")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 查询直播拉流任务状态信息。
/// </summary>
/// <param name="req"><see cref="DescribeLivePullStreamTaskStatusRequest"/></param>
/// <returns><see cref="DescribeLivePullStreamTaskStatusResponse"/></returns>
public Task<DescribeLivePullStreamTaskStatusResponse> DescribeLivePullStreamTaskStatus(DescribeLivePullStreamTaskStatusRequest req)
{
return InternalRequestAsync<DescribeLivePullStreamTaskStatusResponse>(req, "DescribeLivePullStreamTaskStatus");
}
/// <summary>
/// 查询直播拉流任务状态信息。
/// </summary>
/// <param name="req"><see cref="DescribeLivePullStreamTaskStatusRequest"/></param>
/// <returns><see cref="DescribeLivePullStreamTaskStatusResponse"/></returns>
public DescribeLivePullStreamTaskStatusResponse DescribeLivePullStreamTaskStatusSync(DescribeLivePullStreamTaskStatusRequest req)
{
return InternalRequestAsync<DescribeLivePullStreamTaskStatusResponse>(req, "DescribeLivePullStreamTaskStatus")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 查询使用 CreateLivePullStreamTask 接口创建的直播拉流任务。
/// 排序方式:默认按更新时间 倒序排列。
/// </summary>
/// <param name="req"><see cref="DescribeLivePullStreamTasksRequest"/></param>
/// <returns><see cref="DescribeLivePullStreamTasksResponse"/></returns>
public Task<DescribeLivePullStreamTasksResponse> DescribeLivePullStreamTasks(DescribeLivePullStreamTasksRequest req)
{
return InternalRequestAsync<DescribeLivePullStreamTasksResponse>(req, "DescribeLivePullStreamTasks");
}
/// <summary>
/// 查询使用 CreateLivePullStreamTask 接口创建的直播拉流任务。
/// 排序方式:默认按更新时间 倒序排列。
/// </summary>
/// <param name="req"><see cref="DescribeLivePullStreamTasksRequest"/></param>
/// <returns><see cref="DescribeLivePullStreamTasksResponse"/></returns>
public DescribeLivePullStreamTasksResponse DescribeLivePullStreamTasksSync(DescribeLivePullStreamTasksRequest req)
{
return InternalRequestAsync<DescribeLivePullStreamTasksResponse>(req, "DescribeLivePullStreamTasks")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 查询直播推流鉴权key
/// </summary>
/// <param name="req"><see cref="DescribeLivePushAuthKeyRequest"/></param>
/// <returns><see cref="DescribeLivePushAuthKeyResponse"/></returns>
public Task<DescribeLivePushAuthKeyResponse> DescribeLivePushAuthKey(DescribeLivePushAuthKeyRequest req)
{
return InternalRequestAsync<DescribeLivePushAuthKeyResponse>(req, "DescribeLivePushAuthKey");
}
/// <summary>
/// 查询直播推流鉴权key
/// </summary>
/// <param name="req"><see cref="DescribeLivePushAuthKeyRequest"/></param>
/// <returns><see cref="DescribeLivePushAuthKeyResponse"/></returns>
public DescribeLivePushAuthKeyResponse DescribeLivePushAuthKeySync(DescribeLivePushAuthKeyRequest req)
{
return InternalRequestAsync<DescribeLivePushAuthKeyResponse>(req, "DescribeLivePushAuthKey")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 获取录制规则列表
/// </summary>
/// <param name="req"><see cref="DescribeLiveRecordRulesRequest"/></param>
/// <returns><see cref="DescribeLiveRecordRulesResponse"/></returns>
public Task<DescribeLiveRecordRulesResponse> DescribeLiveRecordRules(DescribeLiveRecordRulesRequest req)
{
return InternalRequestAsync<DescribeLiveRecordRulesResponse>(req, "DescribeLiveRecordRules");
}
/// <summary>
/// 获取录制规则列表
/// </summary>
/// <param name="req"><see cref="DescribeLiveRecordRulesRequest"/></param>
/// <returns><see cref="DescribeLiveRecordRulesResponse"/></returns>
public DescribeLiveRecordRulesResponse DescribeLiveRecordRulesSync(DescribeLiveRecordRulesRequest req)
{
return InternalRequestAsync<DescribeLiveRecordRulesResponse>(req, "DescribeLiveRecordRules")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 获取单个录制模板。
/// </summary>
/// <param name="req"><see cref="DescribeLiveRecordTemplateRequest"/></param>
/// <returns><see cref="DescribeLiveRecordTemplateResponse"/></returns>
public Task<DescribeLiveRecordTemplateResponse> DescribeLiveRecordTemplate(DescribeLiveRecordTemplateRequest req)
{
return InternalRequestAsync<DescribeLiveRecordTemplateResponse>(req, "DescribeLiveRecordTemplate");
}
/// <summary>
/// 获取单个录制模板。
/// </summary>
/// <param name="req"><see cref="DescribeLiveRecordTemplateRequest"/></param>
/// <returns><see cref="DescribeLiveRecordTemplateResponse"/></returns>
public DescribeLiveRecordTemplateResponse DescribeLiveRecordTemplateSync(DescribeLiveRecordTemplateRequest req)
{
return InternalRequestAsync<DescribeLiveRecordTemplateResponse>(req, "DescribeLiveRecordTemplate")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 获取录制模板列表。
/// </summary>
/// <param name="req"><see cref="DescribeLiveRecordTemplatesRequest"/></param>
/// <returns><see cref="DescribeLiveRecordTemplatesResponse"/></returns>
public Task<DescribeLiveRecordTemplatesResponse> DescribeLiveRecordTemplates(DescribeLiveRecordTemplatesRequest req)
{
return InternalRequestAsync<DescribeLiveRecordTemplatesResponse>(req, "DescribeLiveRecordTemplates");
}
/// <summary>
/// 获取录制模板列表。
/// </summary>
/// <param name="req"><see cref="DescribeLiveRecordTemplatesRequest"/></param>
/// <returns><see cref="DescribeLiveRecordTemplatesResponse"/></returns>
public DescribeLiveRecordTemplatesResponse DescribeLiveRecordTemplatesSync(DescribeLiveRecordTemplatesRequest req)
{
return InternalRequestAsync<DescribeLiveRecordTemplatesResponse>(req, "DescribeLiveRecordTemplates")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 获取截图规则列表
/// </summary>
/// <param name="req"><see cref="DescribeLiveSnapshotRulesRequest"/></param>
/// <returns><see cref="DescribeLiveSnapshotRulesResponse"/></returns>
public Task<DescribeLiveSnapshotRulesResponse> DescribeLiveSnapshotRules(DescribeLiveSnapshotRulesRequest req)
{
return InternalRequestAsync<DescribeLiveSnapshotRulesResponse>(req, "DescribeLiveSnapshotRules");
}
/// <summary>
/// 获取截图规则列表
/// </summary>
/// <param name="req"><see cref="DescribeLiveSnapshotRulesRequest"/></param>
/// <returns><see cref="DescribeLiveSnapshotRulesResponse"/></returns>
public DescribeLiveSnapshotRulesResponse DescribeLiveSnapshotRulesSync(DescribeLiveSnapshotRulesRequest req)
{
return InternalRequestAsync<DescribeLiveSnapshotRulesResponse>(req, "DescribeLiveSnapshotRules")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 获取单个截图模板。
/// </summary>
/// <param name="req"><see cref="DescribeLiveSnapshotTemplateRequest"/></param>
/// <returns><see cref="DescribeLiveSnapshotTemplateResponse"/></returns>
public Task<DescribeLiveSnapshotTemplateResponse> DescribeLiveSnapshotTemplate(DescribeLiveSnapshotTemplateRequest req)
{
return InternalRequestAsync<DescribeLiveSnapshotTemplateResponse>(req, "DescribeLiveSnapshotTemplate");
}
/// <summary>
/// 获取单个截图模板。
/// </summary>
/// <param name="req"><see cref="DescribeLiveSnapshotTemplateRequest"/></param>
/// <returns><see cref="DescribeLiveSnapshotTemplateResponse"/></returns>
public DescribeLiveSnapshotTemplateResponse DescribeLiveSnapshotTemplateSync(DescribeLiveSnapshotTemplateRequest req)
{
return InternalRequestAsync<DescribeLiveSnapshotTemplateResponse>(req, "DescribeLiveSnapshotTemplate")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 获取截图模板列表。
/// </summary>
/// <param name="req"><see cref="DescribeLiveSnapshotTemplatesRequest"/></param>
/// <returns><see cref="DescribeLiveSnapshotTemplatesResponse"/></returns>
public Task<DescribeLiveSnapshotTemplatesResponse> DescribeLiveSnapshotTemplates(DescribeLiveSnapshotTemplatesRequest req)
{
return InternalRequestAsync<DescribeLiveSnapshotTemplatesResponse>(req, "DescribeLiveSnapshotTemplates");
}
/// <summary>
/// 获取截图模板列表。
/// </summary>
/// <param name="req"><see cref="DescribeLiveSnapshotTemplatesRequest"/></param>
/// <returns><see cref="DescribeLiveSnapshotTemplatesResponse"/></returns>
public DescribeLiveSnapshotTemplatesResponse DescribeLiveSnapshotTemplatesSync(DescribeLiveSnapshotTemplatesRequest req)
{
return InternalRequestAsync<DescribeLiveSnapshotTemplatesResponse>(req, "DescribeLiveSnapshotTemplates")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 用于查询推断流事件。<br>
///
/// 注意:
/// 1. 该接口提供离线推断流记录查询功能,不可作为重要业务场景强依赖接口。
/// 2. 该接口可通过使用IsFilter进行过滤,返回推流历史记录。
/// </summary>
/// <param name="req"><see cref="DescribeLiveStreamEventListRequest"/></param>
/// <returns><see cref="DescribeLiveStreamEventListResponse"/></returns>
public Task<DescribeLiveStreamEventListResponse> DescribeLiveStreamEventList(DescribeLiveStreamEventListRequest req)
{
return InternalRequestAsync<DescribeLiveStreamEventListResponse>(req, "DescribeLiveStreamEventList");
}
/// <summary>
/// 用于查询推断流事件。<br>
///
/// 注意:
/// 1. 该接口提供离线推断流记录查询功能,不可作为重要业务场景强依赖接口。
/// 2. 该接口可通过使用IsFilter进行过滤,返回推流历史记录。
/// </summary>
/// <param name="req"><see cref="DescribeLiveStreamEventListRequest"/></param>
/// <returns><see cref="DescribeLiveStreamEventListResponse"/></returns>
public DescribeLiveStreamEventListResponse DescribeLiveStreamEventListSync(DescribeLiveStreamEventListRequest req)
{
return InternalRequestAsync<DescribeLiveStreamEventListResponse>(req, "DescribeLiveStreamEventList")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 该接口用来查询某个特定监播任务的配置。
/// </summary>
/// <param name="req"><see cref="DescribeLiveStreamMonitorRequest"/></param>
/// <returns><see cref="DescribeLiveStreamMonitorResponse"/></returns>
public Task<DescribeLiveStreamMonitorResponse> DescribeLiveStreamMonitor(DescribeLiveStreamMonitorRequest req)
{
return InternalRequestAsync<DescribeLiveStreamMonitorResponse>(req, "DescribeLiveStreamMonitor");
}
/// <summary>
/// 该接口用来查询某个特定监播任务的配置。
/// </summary>
/// <param name="req"><see cref="DescribeLiveStreamMonitorRequest"/></param>
/// <returns><see cref="DescribeLiveStreamMonitorResponse"/></returns>
public DescribeLiveStreamMonitorResponse DescribeLiveStreamMonitorSync(DescribeLiveStreamMonitorRequest req)
{
return InternalRequestAsync<DescribeLiveStreamMonitorResponse>(req, "DescribeLiveStreamMonitor")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 该接口用来查询直播流监播任务配置的列表信息。
/// </summary>
/// <param name="req"><see cref="DescribeLiveStreamMonitorListRequest"/></param>
/// <returns><see cref="DescribeLiveStreamMonitorListResponse"/></returns>
public Task<DescribeLiveStreamMonitorListResponse> DescribeLiveStreamMonitorList(DescribeLiveStreamMonitorListRequest req)
{
return InternalRequestAsync<DescribeLiveStreamMonitorListResponse>(req, "DescribeLiveStreamMonitorList");
}
/// <summary>
/// 该接口用来查询直播流监播任务配置的列表信息。
/// </summary>
/// <param name="req"><see cref="DescribeLiveStreamMonitorListRequest"/></param>
/// <returns><see cref="DescribeLiveStreamMonitorListResponse"/></returns>
public DescribeLiveStreamMonitorListResponse DescribeLiveStreamMonitorListSync(DescribeLiveStreamMonitorListRequest req)
{
return InternalRequestAsync<DescribeLiveStreamMonitorListResponse>(req, "DescribeLiveStreamMonitorList")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 返回正在直播中的流列表。适用于推流成功后查询在线流信息。
///
/// 注意:
/// 1. 该接口仅提供辅助查询在线流列表功能,业务重要场景不可强依赖该接口。
/// 2. 该接口仅适用于流数少于2万路的情况,对于流数较大用户请联系售后。
/// </summary>
/// <param name="req"><see cref="DescribeLiveStreamOnlineListRequest"/></param>
/// <returns><see cref="DescribeLiveStreamOnlineListResponse"/></returns>
public Task<DescribeLiveStreamOnlineListResponse> DescribeLiveStreamOnlineList(DescribeLiveStreamOnlineListRequest req)
{
return InternalRequestAsync<DescribeLiveStreamOnlineListResponse>(req, "DescribeLiveStreamOnlineList");
}
/// <summary>
/// 返回正在直播中的流列表。适用于推流成功后查询在线流信息。
///
/// 注意:
/// 1. 该接口仅提供辅助查询在线流列表功能,业务重要场景不可强依赖该接口。
/// 2. 该接口仅适用于流数少于2万路的情况,对于流数较大用户请联系售后。
/// </summary>
/// <param name="req"><see cref="DescribeLiveStreamOnlineListRequest"/></param>
/// <returns><see cref="DescribeLiveStreamOnlineListResponse"/></returns>
public DescribeLiveStreamOnlineListResponse DescribeLiveStreamOnlineListSync(DescribeLiveStreamOnlineListRequest req)
{
return InternalRequestAsync<DescribeLiveStreamOnlineListResponse>(req, "DescribeLiveStreamOnlineList")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 返回已经推过流的流列表。<br>
/// 注意:分页最多支持查询1万条记录,可通过调整查询时间范围来获取更多数据。
/// </summary>
/// <param name="req"><see cref="DescribeLiveStreamPublishedListRequest"/></param>
/// <returns><see cref="DescribeLiveStreamPublishedListResponse"/></returns>
public Task<DescribeLiveStreamPublishedListResponse> DescribeLiveStreamPublishedList(DescribeLiveStreamPublishedListRequest req)
{
return InternalRequestAsync<DescribeLiveStreamPublishedListResponse>(req, "DescribeLiveStreamPublishedList");
}
/// <summary>
/// 返回已经推过流的流列表。<br>
/// 注意:分页最多支持查询1万条记录,可通过调整查询时间范围来获取更多数据。
/// </summary>
/// <param name="req"><see cref="DescribeLiveStreamPublishedListRequest"/></param>
/// <returns><see cref="DescribeLiveStreamPublishedListResponse"/></returns>
public DescribeLiveStreamPublishedListResponse DescribeLiveStreamPublishedListSync(DescribeLiveStreamPublishedListRequest req)
{
return InternalRequestAsync<DescribeLiveStreamPublishedListResponse>(req, "DescribeLiveStreamPublishedList")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 该接口为监控数据接口,数据采集及统计方式与计费数据不同,仅供运营分析使用,不能用于计费对账参考。
/// 查询所有实时流的推流信息,包括客户端IP,服务端IP,帧率,码率,域名,开始推流时间。
/// </summary>
/// <param name="req"><see cref="DescribeLiveStreamPushInfoListRequest"/></param>
/// <returns><see cref="DescribeLiveStreamPushInfoListResponse"/></returns>
public Task<DescribeLiveStreamPushInfoListResponse> DescribeLiveStreamPushInfoList(DescribeLiveStreamPushInfoListRequest req)
{
return InternalRequestAsync<DescribeLiveStreamPushInfoListResponse>(req, "DescribeLiveStreamPushInfoList");
}
/// <summary>
/// 该接口为监控数据接口,数据采集及统计方式与计费数据不同,仅供运营分析使用,不能用于计费对账参考。
/// 查询所有实时流的推流信息,包括客户端IP,服务端IP,帧率,码率,域名,开始推流时间。
/// </summary>
/// <param name="req"><see cref="DescribeLiveStreamPushInfoListRequest"/></param>
/// <returns><see cref="DescribeLiveStreamPushInfoListResponse"/></returns>
public DescribeLiveStreamPushInfoListResponse DescribeLiveStreamPushInfoListSync(DescribeLiveStreamPushInfoListRequest req)
{
return InternalRequestAsync<DescribeLiveStreamPushInfoListResponse>(req, "DescribeLiveStreamPushInfoList")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 返回直播中、无推流或者禁播等状态。
///
/// 使用建议:
/// 该接口提供实时流状态查询功能,鉴于网络抖动等一些不可抗因素,使用该接口作为判断主播是否开播等重要业务场景时,请参考以下使用建议。
/// 1. 优先使用业务自身的房间开关播逻辑,判断主播是否在线,譬如客户端开播信令和主播在线心跳等。
/// 2. 对于没有房间管理的直播场景,可以结合以下方案综合判断。
/// 2.1 根据[推断流事件通知](/document/product/267/20388) 判断主播在线状态。
/// 2.2 通过定时(间隔>1min)查询[直播中的流接口](/document/api/267/20472),判断主播是否在线。
/// 2.3 通过 本接口 查询直播流状态,判断主播是否在线。
/// 2.4 以上任一方式判断为在线,都认为主播开播中,并且接口查询超时或解析异常时,也默认为在线,减少对业务的影响。
/// </summary>
/// <param name="req"><see cref="DescribeLiveStreamStateRequest"/></param>
/// <returns><see cref="DescribeLiveStreamStateResponse"/></returns>
public Task<DescribeLiveStreamStateResponse> DescribeLiveStreamState(DescribeLiveStreamStateRequest req)
{
return InternalRequestAsync<DescribeLiveStreamStateResponse>(req, "DescribeLiveStreamState");
}
/// <summary>
/// 返回直播中、无推流或者禁播等状态。
///
/// 使用建议:
/// 该接口提供实时流状态查询功能,鉴于网络抖动等一些不可抗因素,使用该接口作为判断主播是否开播等重要业务场景时,请参考以下使用建议。
/// 1. 优先使用业务自身的房间开关播逻辑,判断主播是否在线,譬如客户端开播信令和主播在线心跳等。
/// 2. 对于没有房间管理的直播场景,可以结合以下方案综合判断。
/// 2.1 根据[推断流事件通知](/document/product/267/20388) 判断主播在线状态。
/// 2.2 通过定时(间隔>1min)查询[直播中的流接口](/document/api/267/20472),判断主播是否在线。
/// 2.3 通过 本接口 查询直播流状态,判断主播是否在线。
/// 2.4 以上任一方式判断为在线,都认为主播开播中,并且接口查询超时或解析异常时,也默认为在线,减少对业务的影响。
/// </summary>
/// <param name="req"><see cref="DescribeLiveStreamStateRequest"/></param>
/// <returns><see cref="DescribeLiveStreamStateResponse"/></returns>
public DescribeLiveStreamStateResponse DescribeLiveStreamStateSync(DescribeLiveStreamStateRequest req)
{
return InternalRequestAsync<DescribeLiveStreamStateResponse>(req, "DescribeLiveStreamState")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 提供给客户对账,按天统计,维度:推流域名、时移文件时长(累加)、配置天数(不累加)、时移总时长(累加)。
/// </summary>
/// <param name="req"><see cref="DescribeLiveTimeShiftBillInfoListRequest"/></param>
/// <returns><see cref="DescribeLiveTimeShiftBillInfoListResponse"/></returns>
public Task<DescribeLiveTimeShiftBillInfoListResponse> DescribeLiveTimeShiftBillInfoList(DescribeLiveTimeShiftBillInfoListRequest req)
{
return InternalRequestAsync<DescribeLiveTimeShiftBillInfoListResponse>(req, "DescribeLiveTimeShiftBillInfoList");
}
/// <summary>
/// 提供给客户对账,按天统计,维度:推流域名、时移文件时长(累加)、配置天数(不累加)、时移总时长(累加)。
/// </summary>
/// <param name="req"><see cref="DescribeLiveTimeShiftBillInfoListRequest"/></param>
/// <returns><see cref="DescribeLiveTimeShiftBillInfoListResponse"/></returns>
public DescribeLiveTimeShiftBillInfoListResponse DescribeLiveTimeShiftBillInfoListSync(DescribeLiveTimeShiftBillInfoListRequest req)
{
return InternalRequestAsync<DescribeLiveTimeShiftBillInfoListResponse>(req, "DescribeLiveTimeShiftBillInfoList")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 获取直播时移规则列表。
/// </summary>
/// <param name="req"><see cref="DescribeLiveTimeShiftRulesRequest"/></param>
/// <returns><see cref="DescribeLiveTimeShiftRulesResponse"/></returns>
public Task<DescribeLiveTimeShiftRulesResponse> DescribeLiveTimeShiftRules(DescribeLiveTimeShiftRulesRequest req)
{
return InternalRequestAsync<DescribeLiveTimeShiftRulesResponse>(req, "DescribeLiveTimeShiftRules");
}
/// <summary>
/// 获取直播时移规则列表。
/// </summary>
/// <param name="req"><see cref="DescribeLiveTimeShiftRulesRequest"/></param>
/// <returns><see cref="DescribeLiveTimeShiftRulesResponse"/></returns>
public DescribeLiveTimeShiftRulesResponse DescribeLiveTimeShiftRulesSync(DescribeLiveTimeShiftRulesRequest req)
{
return InternalRequestAsync<DescribeLiveTimeShiftRulesResponse>(req, "DescribeLiveTimeShiftRules")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 获取直播时移模板。
/// </summary>
/// <param name="req"><see cref="DescribeLiveTimeShiftTemplatesRequest"/></param>
/// <returns><see cref="DescribeLiveTimeShiftTemplatesResponse"/></returns>
public Task<DescribeLiveTimeShiftTemplatesResponse> DescribeLiveTimeShiftTemplates(DescribeLiveTimeShiftTemplatesRequest req)
{
return InternalRequestAsync<DescribeLiveTimeShiftTemplatesResponse>(req, "DescribeLiveTimeShiftTemplates");
}
/// <summary>
/// 获取直播时移模板。
/// </summary>
/// <param name="req"><see cref="DescribeLiveTimeShiftTemplatesRequest"/></param>
/// <returns><see cref="DescribeLiveTimeShiftTemplatesResponse"/></returns>
public DescribeLiveTimeShiftTemplatesResponse DescribeLiveTimeShiftTemplatesSync(DescribeLiveTimeShiftTemplatesRequest req)
{
return InternalRequestAsync<DescribeLiveTimeShiftTemplatesResponse>(req, "DescribeLiveTimeShiftTemplates")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 该接口为监控数据接口,数据采集及统计方式与计费数据不同,仅供运营分析使用,不能用于计费对账参考。
/// 支持查询某天或某段时间的转码详细信息。由于转码数据量较大,如果查询时间跨度太长可能会拉不到数据,可以尝试将查询时间范围缩小些再重试。
/// </summary>
/// <param name="req"><see cref="DescribeLiveTranscodeDetailInfoRequest"/></param>
/// <returns><see cref="DescribeLiveTranscodeDetailInfoResponse"/></returns>
public Task<DescribeLiveTranscodeDetailInfoResponse> DescribeLiveTranscodeDetailInfo(DescribeLiveTranscodeDetailInfoRequest req)
{
return InternalRequestAsync<DescribeLiveTranscodeDetailInfoResponse>(req, "DescribeLiveTranscodeDetailInfo");
}
/// <summary>
/// 该接口为监控数据接口,数据采集及统计方式与计费数据不同,仅供运营分析使用,不能用于计费对账参考。
/// 支持查询某天或某段时间的转码详细信息。由于转码数据量较大,如果查询时间跨度太长可能会拉不到数据,可以尝试将查询时间范围缩小些再重试。
/// </summary>
/// <param name="req"><see cref="DescribeLiveTranscodeDetailInfoRequest"/></param>
/// <returns><see cref="DescribeLiveTranscodeDetailInfoResponse"/></returns>
public DescribeLiveTranscodeDetailInfoResponse DescribeLiveTranscodeDetailInfoSync(DescribeLiveTranscodeDetailInfoRequest req)
{
return InternalRequestAsync<DescribeLiveTranscodeDetailInfoResponse>(req, "DescribeLiveTranscodeDetailInfo")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 获取转码规则列表
/// </summary>
/// <param name="req"><see cref="DescribeLiveTranscodeRulesRequest"/></param>
/// <returns><see cref="DescribeLiveTranscodeRulesResponse"/></returns>
public Task<DescribeLiveTranscodeRulesResponse> DescribeLiveTranscodeRules(DescribeLiveTranscodeRulesRequest req)
{
return InternalRequestAsync<DescribeLiveTranscodeRulesResponse>(req, "DescribeLiveTranscodeRules");
}
/// <summary>
/// 获取转码规则列表
/// </summary>
/// <param name="req"><see cref="DescribeLiveTranscodeRulesRequest"/></param>
/// <returns><see cref="DescribeLiveTranscodeRulesResponse"/></returns>
public DescribeLiveTranscodeRulesResponse DescribeLiveTranscodeRulesSync(DescribeLiveTranscodeRulesRequest req)
{
return InternalRequestAsync<DescribeLiveTranscodeRulesResponse>(req, "DescribeLiveTranscodeRules")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 获取单个转码模板。
/// </summary>
/// <param name="req"><see cref="DescribeLiveTranscodeTemplateRequest"/></param>
/// <returns><see cref="DescribeLiveTranscodeTemplateResponse"/></returns>
public Task<DescribeLiveTranscodeTemplateResponse> DescribeLiveTranscodeTemplate(DescribeLiveTranscodeTemplateRequest req)
{
return InternalRequestAsync<DescribeLiveTranscodeTemplateResponse>(req, "DescribeLiveTranscodeTemplate");
}
/// <summary>
/// 获取单个转码模板。
/// </summary>
/// <param name="req"><see cref="DescribeLiveTranscodeTemplateRequest"/></param>
/// <returns><see cref="DescribeLiveTranscodeTemplateResponse"/></returns>
public DescribeLiveTranscodeTemplateResponse DescribeLiveTranscodeTemplateSync(DescribeLiveTranscodeTemplateRequest req)
{
return InternalRequestAsync<DescribeLiveTranscodeTemplateResponse>(req, "DescribeLiveTranscodeTemplate")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 获取转码模板列表。
/// </summary>
/// <param name="req"><see cref="DescribeLiveTranscodeTemplatesRequest"/></param>
/// <returns><see cref="DescribeLiveTranscodeTemplatesResponse"/></returns>
public Task<DescribeLiveTranscodeTemplatesResponse> DescribeLiveTranscodeTemplates(DescribeLiveTranscodeTemplatesRequest req)
{
return InternalRequestAsync<DescribeLiveTranscodeTemplatesResponse>(req, "DescribeLiveTranscodeTemplates");
}
/// <summary>
/// 获取转码模板列表。
/// </summary>
/// <param name="req"><see cref="DescribeLiveTranscodeTemplatesRequest"/></param>
/// <returns><see cref="DescribeLiveTranscodeTemplatesResponse"/></returns>
public DescribeLiveTranscodeTemplatesResponse DescribeLiveTranscodeTemplatesSync(DescribeLiveTranscodeTemplatesRequest req)
{
return InternalRequestAsync<DescribeLiveTranscodeTemplatesResponse>(req, "DescribeLiveTranscodeTemplates")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 查询转码总量数据,可查询近三个月内的数据。
/// 注意:
/// 如果是查询某一天内,则返回5分钟粒度数据;
/// 如果是查询跨天或指定域名, 则返回1小时粒度数据。
/// </summary>
/// <param name="req"><see cref="DescribeLiveTranscodeTotalInfoRequest"/></param>
/// <returns><see cref="DescribeLiveTranscodeTotalInfoResponse"/></returns>
public Task<DescribeLiveTranscodeTotalInfoResponse> DescribeLiveTranscodeTotalInfo(DescribeLiveTranscodeTotalInfoRequest req)
{
return InternalRequestAsync<DescribeLiveTranscodeTotalInfoResponse>(req, "DescribeLiveTranscodeTotalInfo");
}
/// <summary>
/// 查询转码总量数据,可查询近三个月内的数据。
/// 注意:
/// 如果是查询某一天内,则返回5分钟粒度数据;
/// 如果是查询跨天或指定域名, 则返回1小时粒度数据。
/// </summary>
/// <param name="req"><see cref="DescribeLiveTranscodeTotalInfoRequest"/></param>
/// <returns><see cref="DescribeLiveTranscodeTotalInfoResponse"/></returns>
public DescribeLiveTranscodeTotalInfoResponse DescribeLiveTranscodeTotalInfoSync(DescribeLiveTranscodeTotalInfoRequest req)
{
return InternalRequestAsync<DescribeLiveTranscodeTotalInfoResponse>(req, "DescribeLiveTranscodeTotalInfo")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 获取单个水印信息。
/// </summary>
/// <param name="req"><see cref="DescribeLiveWatermarkRequest"/></param>
/// <returns><see cref="DescribeLiveWatermarkResponse"/></returns>
public Task<DescribeLiveWatermarkResponse> DescribeLiveWatermark(DescribeLiveWatermarkRequest req)
{
return InternalRequestAsync<DescribeLiveWatermarkResponse>(req, "DescribeLiveWatermark");
}
/// <summary>
/// 获取单个水印信息。
/// </summary>
/// <param name="req"><see cref="DescribeLiveWatermarkRequest"/></param>
/// <returns><see cref="DescribeLiveWatermarkResponse"/></returns>
public DescribeLiveWatermarkResponse DescribeLiveWatermarkSync(DescribeLiveWatermarkRequest req)
{
return InternalRequestAsync<DescribeLiveWatermarkResponse>(req, "DescribeLiveWatermark")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 获取水印规则列表。
/// </summary>
/// <param name="req"><see cref="DescribeLiveWatermarkRulesRequest"/></param>
/// <returns><see cref="DescribeLiveWatermarkRulesResponse"/></returns>
public Task<DescribeLiveWatermarkRulesResponse> DescribeLiveWatermarkRules(DescribeLiveWatermarkRulesRequest req)
{
return InternalRequestAsync<DescribeLiveWatermarkRulesResponse>(req, "DescribeLiveWatermarkRules");
}
/// <summary>
/// 获取水印规则列表。
/// </summary>
/// <param name="req"><see cref="DescribeLiveWatermarkRulesRequest"/></param>
/// <returns><see cref="DescribeLiveWatermarkRulesResponse"/></returns>
public DescribeLiveWatermarkRulesResponse DescribeLiveWatermarkRulesSync(DescribeLiveWatermarkRulesRequest req)
{
return InternalRequestAsync<DescribeLiveWatermarkRulesResponse>(req, "DescribeLiveWatermarkRules")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 查询水印列表。
/// </summary>
/// <param name="req"><see cref="DescribeLiveWatermarksRequest"/></param>
/// <returns><see cref="DescribeLiveWatermarksResponse"/></returns>
public Task<DescribeLiveWatermarksResponse> DescribeLiveWatermarks(DescribeLiveWatermarksRequest req)
{
return InternalRequestAsync<DescribeLiveWatermarksResponse>(req, "DescribeLiveWatermarks");
}
/// <summary>
/// 查询水印列表。
/// </summary>
/// <param name="req"><see cref="DescribeLiveWatermarksRequest"/></param>
/// <returns><see cref="DescribeLiveWatermarksResponse"/></returns>
public DescribeLiveWatermarksResponse DescribeLiveWatermarksSync(DescribeLiveWatermarksRequest req)
{
return InternalRequestAsync<DescribeLiveWatermarksResponse>(req, "DescribeLiveWatermarks")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// P2P流数据查询接口,用来获取流量、卡播和起播信息。
/// </summary>
/// <param name="req"><see cref="DescribeLiveXP2PDetailInfoListRequest"/></param>
/// <returns><see cref="DescribeLiveXP2PDetailInfoListResponse"/></returns>
public Task<DescribeLiveXP2PDetailInfoListResponse> DescribeLiveXP2PDetailInfoList(DescribeLiveXP2PDetailInfoListRequest req)
{
return InternalRequestAsync<DescribeLiveXP2PDetailInfoListResponse>(req, "DescribeLiveXP2PDetailInfoList");
}
/// <summary>
/// P2P流数据查询接口,用来获取流量、卡播和起播信息。
/// </summary>
/// <param name="req"><see cref="DescribeLiveXP2PDetailInfoListRequest"/></param>
/// <returns><see cref="DescribeLiveXP2PDetailInfoListResponse"/></returns>
public DescribeLiveXP2PDetailInfoListResponse DescribeLiveXP2PDetailInfoListSync(DescribeLiveXP2PDetailInfoListRequest req)
{
return InternalRequestAsync<DescribeLiveXP2PDetailInfoListResponse>(req, "DescribeLiveXP2PDetailInfoList")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 批量获取日志URL。
/// </summary>
/// <param name="req"><see cref="DescribeLogDownloadListRequest"/></param>
/// <returns><see cref="DescribeLogDownloadListResponse"/></returns>
public Task<DescribeLogDownloadListResponse> DescribeLogDownloadList(DescribeLogDownloadListRequest req)
{
return InternalRequestAsync<DescribeLogDownloadListResponse>(req, "DescribeLogDownloadList");
}
/// <summary>
/// 批量获取日志URL。
/// </summary>
/// <param name="req"><see cref="DescribeLogDownloadListRequest"/></param>
/// <returns><see cref="DescribeLogDownloadListResponse"/></returns>
public DescribeLogDownloadListResponse DescribeLogDownloadListSync(DescribeLogDownloadListRequest req)
{
return InternalRequestAsync<DescribeLogDownloadListResponse>(req, "DescribeLogDownloadList")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 用来查询监播场次7天内的智能识别、断流、低帧率等信息的汇总报告。
/// </summary>
/// <param name="req"><see cref="DescribeMonitorReportRequest"/></param>
/// <returns><see cref="DescribeMonitorReportResponse"/></returns>
public Task<DescribeMonitorReportResponse> DescribeMonitorReport(DescribeMonitorReportRequest req)
{
return InternalRequestAsync<DescribeMonitorReportResponse>(req, "DescribeMonitorReport");
}
/// <summary>
/// 用来查询监播场次7天内的智能识别、断流、低帧率等信息的汇总报告。
/// </summary>
/// <param name="req"><see cref="DescribeMonitorReportRequest"/></param>
/// <returns><see cref="DescribeMonitorReportResponse"/></returns>
public DescribeMonitorReportResponse DescribeMonitorReportSync(DescribeMonitorReportRequest req)
{
return InternalRequestAsync<DescribeMonitorReportResponse>(req, "DescribeMonitorReport")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 该接口为监控数据接口,数据采集及统计方式与计费数据不同,仅供运营分析使用,不能用于计费对账参考。
/// 查询下行播放错误码信息,某段时间内1分钟粒度的各http错误码出现的次数,包括4xx,5xx。
/// </summary>
/// <param name="req"><see cref="DescribePlayErrorCodeDetailInfoListRequest"/></param>
/// <returns><see cref="DescribePlayErrorCodeDetailInfoListResponse"/></returns>
public Task<DescribePlayErrorCodeDetailInfoListResponse> DescribePlayErrorCodeDetailInfoList(DescribePlayErrorCodeDetailInfoListRequest req)
{
return InternalRequestAsync<DescribePlayErrorCodeDetailInfoListResponse>(req, "DescribePlayErrorCodeDetailInfoList");
}
/// <summary>
/// 该接口为监控数据接口,数据采集及统计方式与计费数据不同,仅供运营分析使用,不能用于计费对账参考。
/// 查询下行播放错误码信息,某段时间内1分钟粒度的各http错误码出现的次数,包括4xx,5xx。
/// </summary>
/// <param name="req"><see cref="DescribePlayErrorCodeDetailInfoListRequest"/></param>
/// <returns><see cref="DescribePlayErrorCodeDetailInfoListResponse"/></returns>
public DescribePlayErrorCodeDetailInfoListResponse DescribePlayErrorCodeDetailInfoListSync(DescribePlayErrorCodeDetailInfoListRequest req)
{
return InternalRequestAsync<DescribePlayErrorCodeDetailInfoListResponse>(req, "DescribePlayErrorCodeDetailInfoList")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 该接口为监控数据接口,数据采集及统计方式与计费数据不同,仅供运营分析使用,不能用于计费对账参考。
/// 查询下行播放错误码信息。
/// </summary>
/// <param name="req"><see cref="DescribePlayErrorCodeSumInfoListRequest"/></param>
/// <returns><see cref="DescribePlayErrorCodeSumInfoListResponse"/></returns>
public Task<DescribePlayErrorCodeSumInfoListResponse> DescribePlayErrorCodeSumInfoList(DescribePlayErrorCodeSumInfoListRequest req)
{
return InternalRequestAsync<DescribePlayErrorCodeSumInfoListResponse>(req, "DescribePlayErrorCodeSumInfoList");
}
/// <summary>
/// 该接口为监控数据接口,数据采集及统计方式与计费数据不同,仅供运营分析使用,不能用于计费对账参考。
/// 查询下行播放错误码信息。
/// </summary>
/// <param name="req"><see cref="DescribePlayErrorCodeSumInfoListRequest"/></param>
/// <returns><see cref="DescribePlayErrorCodeSumInfoListResponse"/></returns>
public DescribePlayErrorCodeSumInfoListResponse DescribePlayErrorCodeSumInfoListSync(DescribePlayErrorCodeSumInfoListRequest req)
{
return InternalRequestAsync<DescribePlayErrorCodeSumInfoListResponse>(req, "DescribePlayErrorCodeSumInfoList")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 该接口为监控数据接口,数据采集及统计方式与计费数据不同,仅供运营分析使用,不能用于计费对账参考。
/// 查询某段时间内每个国家地区每个省份每个运营商的平均每秒流量,总流量,总请求数信息。
/// </summary>
/// <param name="req"><see cref="DescribeProIspPlaySumInfoListRequest"/></param>
/// <returns><see cref="DescribeProIspPlaySumInfoListResponse"/></returns>
public Task<DescribeProIspPlaySumInfoListResponse> DescribeProIspPlaySumInfoList(DescribeProIspPlaySumInfoListRequest req)
{
return InternalRequestAsync<DescribeProIspPlaySumInfoListResponse>(req, "DescribeProIspPlaySumInfoList");
}
/// <summary>
/// 该接口为监控数据接口,数据采集及统计方式与计费数据不同,仅供运营分析使用,不能用于计费对账参考。
/// 查询某段时间内每个国家地区每个省份每个运营商的平均每秒流量,总流量,总请求数信息。
/// </summary>
/// <param name="req"><see cref="DescribeProIspPlaySumInfoListRequest"/></param>
/// <returns><see cref="DescribeProIspPlaySumInfoListResponse"/></returns>
public DescribeProIspPlaySumInfoListResponse DescribeProIspPlaySumInfoListSync(DescribeProIspPlaySumInfoListRequest req)
{
return InternalRequestAsync<DescribeProIspPlaySumInfoListResponse>(req, "DescribeProIspPlaySumInfoList")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 该接口为监控数据接口,数据采集及统计方式与计费数据不同,仅供运营分析使用,不能用于计费对账参考。
/// 查询某省份某运营商下行播放数据,包括带宽,流量,请求数,并发连接数信息。
/// </summary>
/// <param name="req"><see cref="DescribeProvinceIspPlayInfoListRequest"/></param>
/// <returns><see cref="DescribeProvinceIspPlayInfoListResponse"/></returns>
public Task<DescribeProvinceIspPlayInfoListResponse> DescribeProvinceIspPlayInfoList(DescribeProvinceIspPlayInfoListRequest req)
{
return InternalRequestAsync<DescribeProvinceIspPlayInfoListResponse>(req, "DescribeProvinceIspPlayInfoList");
}
/// <summary>
/// 该接口为监控数据接口,数据采集及统计方式与计费数据不同,仅供运营分析使用,不能用于计费对账参考。
/// 查询某省份某运营商下行播放数据,包括带宽,流量,请求数,并发连接数信息。
/// </summary>
/// <param name="req"><see cref="DescribeProvinceIspPlayInfoListRequest"/></param>
/// <returns><see cref="DescribeProvinceIspPlayInfoListResponse"/></returns>
public DescribeProvinceIspPlayInfoListResponse DescribeProvinceIspPlayInfoListSync(DescribeProvinceIspPlayInfoListRequest req)
{
return InternalRequestAsync<DescribeProvinceIspPlayInfoListResponse>(req, "DescribeProvinceIspPlayInfoList")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 查询直播拉流配置。该接口已下线,请使用新接口 DescribeLivePullStreamTasks。
/// </summary>
/// <param name="req"><see cref="DescribePullStreamConfigsRequest"/></param>
/// <returns><see cref="DescribePullStreamConfigsResponse"/></returns>
public Task<DescribePullStreamConfigsResponse> DescribePullStreamConfigs(DescribePullStreamConfigsRequest req)
{
return InternalRequestAsync<DescribePullStreamConfigsResponse>(req, "DescribePullStreamConfigs");
}
/// <summary>
/// 查询直播拉流配置。该接口已下线,请使用新接口 DescribeLivePullStreamTasks。
/// </summary>
/// <param name="req"><see cref="DescribePullStreamConfigsRequest"/></param>
/// <returns><see cref="DescribePullStreamConfigsResponse"/></returns>
public DescribePullStreamConfigsResponse DescribePullStreamConfigsSync(DescribePullStreamConfigsRequest req)
{
return InternalRequestAsync<DescribePullStreamConfigsResponse>(req, "DescribePullStreamConfigs")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 查询拉流转推任务的时长信息。
/// </summary>
/// <param name="req"><see cref="DescribePullTransformPushInfoRequest"/></param>
/// <returns><see cref="DescribePullTransformPushInfoResponse"/></returns>
public Task<DescribePullTransformPushInfoResponse> DescribePullTransformPushInfo(DescribePullTransformPushInfoRequest req)
{
return InternalRequestAsync<DescribePullTransformPushInfoResponse>(req, "DescribePullTransformPushInfo");
}
/// <summary>
/// 查询拉流转推任务的时长信息。
/// </summary>
/// <param name="req"><see cref="DescribePullTransformPushInfoRequest"/></param>
/// <returns><see cref="DescribePullTransformPushInfoResponse"/></returns>
public DescribePullTransformPushInfoResponse DescribePullTransformPushInfoSync(DescribePullTransformPushInfoRequest req)
{
return InternalRequestAsync<DescribePullTransformPushInfoResponse>(req, "DescribePullTransformPushInfo")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 直播推流带宽和流量数据查询。
/// 推流计费会先取全球推流用量和全球播放用量进行比较,满足计费条件后再按各地区用量出账。详情参见[计费文档](https://cloud.tencent.com/document/product/267/34175)。
/// </summary>
/// <param name="req"><see cref="DescribePushBandwidthAndFluxListRequest"/></param>
/// <returns><see cref="DescribePushBandwidthAndFluxListResponse"/></returns>
public Task<DescribePushBandwidthAndFluxListResponse> DescribePushBandwidthAndFluxList(DescribePushBandwidthAndFluxListRequest req)
{
return InternalRequestAsync<DescribePushBandwidthAndFluxListResponse>(req, "DescribePushBandwidthAndFluxList");
}
/// <summary>
/// 直播推流带宽和流量数据查询。
/// 推流计费会先取全球推流用量和全球播放用量进行比较,满足计费条件后再按各地区用量出账。详情参见[计费文档](https://cloud.tencent.com/document/product/267/34175)。
/// </summary>
/// <param name="req"><see cref="DescribePushBandwidthAndFluxListRequest"/></param>
/// <returns><see cref="DescribePushBandwidthAndFluxListResponse"/></returns>
public DescribePushBandwidthAndFluxListResponse DescribePushBandwidthAndFluxListSync(DescribePushBandwidthAndFluxListRequest req)
{
return InternalRequestAsync<DescribePushBandwidthAndFluxListResponse>(req, "DescribePushBandwidthAndFluxList")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 查询指定时间段范围内启动和结束的录制任务列表。
/// - 使用前提
/// 1. 仅用于查询由 CreateRecordTask 接口创建的录制任务。
/// 2. 不能查询被 DeleteRecordTask 接口删除以及已过期(平台侧保留3个月)的录制任务。
/// </summary>
/// <param name="req"><see cref="DescribeRecordTaskRequest"/></param>
/// <returns><see cref="DescribeRecordTaskResponse"/></returns>
public Task<DescribeRecordTaskResponse> DescribeRecordTask(DescribeRecordTaskRequest req)
{
return InternalRequestAsync<DescribeRecordTaskResponse>(req, "DescribeRecordTask");
}
/// <summary>
/// 查询指定时间段范围内启动和结束的录制任务列表。
/// - 使用前提
/// 1. 仅用于查询由 CreateRecordTask 接口创建的录制任务。
/// 2. 不能查询被 DeleteRecordTask 接口删除以及已过期(平台侧保留3个月)的录制任务。
/// </summary>
/// <param name="req"><see cref="DescribeRecordTaskRequest"/></param>
/// <returns><see cref="DescribeRecordTaskResponse"/></returns>
public DescribeRecordTaskResponse DescribeRecordTaskSync(DescribeRecordTaskRequest req)
{
return InternalRequestAsync<DescribeRecordTaskResponse>(req, "DescribeRecordTask")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 接口用来查询直播增值业务--截图的张数
/// </summary>
/// <param name="req"><see cref="DescribeScreenShotSheetNumListRequest"/></param>
/// <returns><see cref="DescribeScreenShotSheetNumListResponse"/></returns>
public Task<DescribeScreenShotSheetNumListResponse> DescribeScreenShotSheetNumList(DescribeScreenShotSheetNumListRequest req)
{
return InternalRequestAsync<DescribeScreenShotSheetNumListResponse>(req, "DescribeScreenShotSheetNumList");
}
/// <summary>
/// 接口用来查询直播增值业务--截图的张数
/// </summary>
/// <param name="req"><see cref="DescribeScreenShotSheetNumListRequest"/></param>
/// <returns><see cref="DescribeScreenShotSheetNumListResponse"/></returns>
public DescribeScreenShotSheetNumListResponse DescribeScreenShotSheetNumListSync(DescribeScreenShotSheetNumListRequest req)
{
return InternalRequestAsync<DescribeScreenShotSheetNumListResponse>(req, "DescribeScreenShotSheetNumList")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 查询指定时间段范围内启动和结束的截图任务列表。
/// - 使用前提
/// 1. 仅用于查询由 CreateScreenshotTask接口创建的截图任务。
/// 2. 不能查询被 DeleteScreenshotTask接口删除以及已过期(平台侧保留3个月)的截图任务。
/// </summary>
/// <param name="req"><see cref="DescribeScreenshotTaskRequest"/></param>
/// <returns><see cref="DescribeScreenshotTaskResponse"/></returns>
public Task<DescribeScreenshotTaskResponse> DescribeScreenshotTask(DescribeScreenshotTaskRequest req)
{
return InternalRequestAsync<DescribeScreenshotTaskResponse>(req, "DescribeScreenshotTask");
}
/// <summary>
/// 查询指定时间段范围内启动和结束的截图任务列表。
/// - 使用前提
/// 1. 仅用于查询由 CreateScreenshotTask接口创建的截图任务。
/// 2. 不能查询被 DeleteScreenshotTask接口删除以及已过期(平台侧保留3个月)的截图任务。
/// </summary>
/// <param name="req"><see cref="DescribeScreenshotTaskRequest"/></param>
/// <returns><see cref="DescribeScreenshotTaskResponse"/></returns>
public DescribeScreenshotTaskResponse DescribeScreenshotTaskSync(DescribeScreenshotTaskRequest req)
{
return InternalRequestAsync<DescribeScreenshotTaskResponse>(req, "DescribeScreenshotTask")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 该接口为监控数据接口,数据采集及统计方式与计费数据不同,仅供运营分析使用,不能用于计费对账参考。
/// 查询天维度每条流的播放数据,包括总流量等。
/// </summary>
/// <param name="req"><see cref="DescribeStreamDayPlayInfoListRequest"/></param>
/// <returns><see cref="DescribeStreamDayPlayInfoListResponse"/></returns>
public Task<DescribeStreamDayPlayInfoListResponse> DescribeStreamDayPlayInfoList(DescribeStreamDayPlayInfoListRequest req)
{
return InternalRequestAsync<DescribeStreamDayPlayInfoListResponse>(req, "DescribeStreamDayPlayInfoList");
}
/// <summary>
/// 该接口为监控数据接口,数据采集及统计方式与计费数据不同,仅供运营分析使用,不能用于计费对账参考。
/// 查询天维度每条流的播放数据,包括总流量等。
/// </summary>
/// <param name="req"><see cref="DescribeStreamDayPlayInfoListRequest"/></param>
/// <returns><see cref="DescribeStreamDayPlayInfoListResponse"/></returns>
public DescribeStreamDayPlayInfoListResponse DescribeStreamDayPlayInfoListSync(DescribeStreamDayPlayInfoListRequest req)
{
return InternalRequestAsync<DescribeStreamDayPlayInfoListResponse>(req, "DescribeStreamDayPlayInfoList")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 该接口为监控数据接口,数据采集及统计方式与计费数据不同,仅供运营分析使用,不能用于计费对账参考。
/// 查询播放数据,支持按流名称查询详细播放数据,也可按播放域名查询详细总数据,数据延迟4分钟左右。
/// </summary>
/// <param name="req"><see cref="DescribeStreamPlayInfoListRequest"/></param>
/// <returns><see cref="DescribeStreamPlayInfoListResponse"/></returns>
public Task<DescribeStreamPlayInfoListResponse> DescribeStreamPlayInfoList(DescribeStreamPlayInfoListRequest req)
{
return InternalRequestAsync<DescribeStreamPlayInfoListResponse>(req, "DescribeStreamPlayInfoList");
}
/// <summary>
/// 该接口为监控数据接口,数据采集及统计方式与计费数据不同,仅供运营分析使用,不能用于计费对账参考。
/// 查询播放数据,支持按流名称查询详细播放数据,也可按播放域名查询详细总数据,数据延迟4分钟左右。
/// </summary>
/// <param name="req"><see cref="DescribeStreamPlayInfoListRequest"/></param>
/// <returns><see cref="DescribeStreamPlayInfoListResponse"/></returns>
public DescribeStreamPlayInfoListResponse DescribeStreamPlayInfoListSync(DescribeStreamPlayInfoListRequest req)
{
return InternalRequestAsync<DescribeStreamPlayInfoListResponse>(req, "DescribeStreamPlayInfoList")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 该接口为监控数据接口,数据采集及统计方式与计费数据不同,仅供运营分析使用,不能用于计费对账参考。
/// 查询流id的上行推流质量数据,包括音视频的帧率,码率,流逝时间,编码格式等。
/// </summary>
/// <param name="req"><see cref="DescribeStreamPushInfoListRequest"/></param>
/// <returns><see cref="DescribeStreamPushInfoListResponse"/></returns>
public Task<DescribeStreamPushInfoListResponse> DescribeStreamPushInfoList(DescribeStreamPushInfoListRequest req)
{
return InternalRequestAsync<DescribeStreamPushInfoListResponse>(req, "DescribeStreamPushInfoList");
}
/// <summary>
/// 该接口为监控数据接口,数据采集及统计方式与计费数据不同,仅供运营分析使用,不能用于计费对账参考。
/// 查询流id的上行推流质量数据,包括音视频的帧率,码率,流逝时间,编码格式等。
/// </summary>
/// <param name="req"><see cref="DescribeStreamPushInfoListRequest"/></param>
/// <returns><see cref="DescribeStreamPushInfoListResponse"/></returns>
public DescribeStreamPushInfoListResponse DescribeStreamPushInfoListSync(DescribeStreamPushInfoListRequest req)
{
return InternalRequestAsync<DescribeStreamPushInfoListResponse>(req, "DescribeStreamPushInfoList")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 前提调用 DescribeTimeShiftStreamList 获得请求必要参数。查询指定范围内的时移流录制详情,最大支持24小时范围查询。
/// </summary>
/// <param name="req"><see cref="DescribeTimeShiftRecordDetailRequest"/></param>
/// <returns><see cref="DescribeTimeShiftRecordDetailResponse"/></returns>
public Task<DescribeTimeShiftRecordDetailResponse> DescribeTimeShiftRecordDetail(DescribeTimeShiftRecordDetailRequest req)
{
return InternalRequestAsync<DescribeTimeShiftRecordDetailResponse>(req, "DescribeTimeShiftRecordDetail");
}
/// <summary>
/// 前提调用 DescribeTimeShiftStreamList 获得请求必要参数。查询指定范围内的时移流录制详情,最大支持24小时范围查询。
/// </summary>
/// <param name="req"><see cref="DescribeTimeShiftRecordDetailRequest"/></param>
/// <returns><see cref="DescribeTimeShiftRecordDetailResponse"/></returns>
public DescribeTimeShiftRecordDetailResponse DescribeTimeShiftRecordDetailSync(DescribeTimeShiftRecordDetailRequest req)
{
return InternalRequestAsync<DescribeTimeShiftRecordDetailResponse>(req, "DescribeTimeShiftRecordDetail")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 查询某个时间范围内所有时移流列表。最大支持查询24小时内的数据。
/// </summary>
/// <param name="req"><see cref="DescribeTimeShiftStreamListRequest"/></param>
/// <returns><see cref="DescribeTimeShiftStreamListResponse"/></returns>
public Task<DescribeTimeShiftStreamListResponse> DescribeTimeShiftStreamList(DescribeTimeShiftStreamListRequest req)
{
return InternalRequestAsync<DescribeTimeShiftStreamListResponse>(req, "DescribeTimeShiftStreamList");
}
/// <summary>
/// 查询某个时间范围内所有时移流列表。最大支持查询24小时内的数据。
/// </summary>
/// <param name="req"><see cref="DescribeTimeShiftStreamListRequest"/></param>
/// <returns><see cref="DescribeTimeShiftStreamListResponse"/></returns>
public DescribeTimeShiftStreamListResponse DescribeTimeShiftStreamListSync(DescribeTimeShiftStreamListRequest req)
{
return InternalRequestAsync<DescribeTimeShiftStreamListResponse>(req, "DescribeTimeShiftStreamList")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 该接口为监控数据接口,数据采集及统计方式与计费数据不同,仅供运营分析使用,不能用于计费对账参考。
/// 查询某段时间top n客户端ip汇总信息(暂支持top 1000)
/// </summary>
/// <param name="req"><see cref="DescribeTopClientIpSumInfoListRequest"/></param>
/// <returns><see cref="DescribeTopClientIpSumInfoListResponse"/></returns>
public Task<DescribeTopClientIpSumInfoListResponse> DescribeTopClientIpSumInfoList(DescribeTopClientIpSumInfoListRequest req)
{
return InternalRequestAsync<DescribeTopClientIpSumInfoListResponse>(req, "DescribeTopClientIpSumInfoList");
}
/// <summary>
/// 该接口为监控数据接口,数据采集及统计方式与计费数据不同,仅供运营分析使用,不能用于计费对账参考。
/// 查询某段时间top n客户端ip汇总信息(暂支持top 1000)
/// </summary>
/// <param name="req"><see cref="DescribeTopClientIpSumInfoListRequest"/></param>
/// <returns><see cref="DescribeTopClientIpSumInfoListResponse"/></returns>
public DescribeTopClientIpSumInfoListResponse DescribeTopClientIpSumInfoListSync(DescribeTopClientIpSumInfoListRequest req)
{
return InternalRequestAsync<DescribeTopClientIpSumInfoListResponse>(req, "DescribeTopClientIpSumInfoList")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 查询转码任务数。
/// </summary>
/// <param name="req"><see cref="DescribeTranscodeTaskNumRequest"/></param>
/// <returns><see cref="DescribeTranscodeTaskNumResponse"/></returns>
public Task<DescribeTranscodeTaskNumResponse> DescribeTranscodeTaskNum(DescribeTranscodeTaskNumRequest req)
{
return InternalRequestAsync<DescribeTranscodeTaskNumResponse>(req, "DescribeTranscodeTaskNum");
}
/// <summary>
/// 查询转码任务数。
/// </summary>
/// <param name="req"><see cref="DescribeTranscodeTaskNumRequest"/></param>
/// <returns><see cref="DescribeTranscodeTaskNumResponse"/></returns>
public DescribeTranscodeTaskNumResponse DescribeTranscodeTaskNumSync(DescribeTranscodeTaskNumRequest req)
{
return InternalRequestAsync<DescribeTranscodeTaskNumResponse>(req, "DescribeTranscodeTaskNum")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 直播上行路数查询。
/// </summary>
/// <param name="req"><see cref="DescribeUploadStreamNumsRequest"/></param>
/// <returns><see cref="DescribeUploadStreamNumsResponse"/></returns>
public Task<DescribeUploadStreamNumsResponse> DescribeUploadStreamNums(DescribeUploadStreamNumsRequest req)
{
return InternalRequestAsync<DescribeUploadStreamNumsResponse>(req, "DescribeUploadStreamNums");
}
/// <summary>
/// 直播上行路数查询。
/// </summary>
/// <param name="req"><see cref="DescribeUploadStreamNumsRequest"/></param>
/// <returns><see cref="DescribeUploadStreamNumsResponse"/></returns>
public DescribeUploadStreamNumsResponse DescribeUploadStreamNumsSync(DescribeUploadStreamNumsRequest req)
{
return InternalRequestAsync<DescribeUploadStreamNumsResponse>(req, "DescribeUploadStreamNums")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 查询某时间段top n的域名或流id信息(暂支持top 1000)。
/// </summary>
/// <param name="req"><see cref="DescribeVisitTopSumInfoListRequest"/></param>
/// <returns><see cref="DescribeVisitTopSumInfoListResponse"/></returns>
public Task<DescribeVisitTopSumInfoListResponse> DescribeVisitTopSumInfoList(DescribeVisitTopSumInfoListRequest req)
{
return InternalRequestAsync<DescribeVisitTopSumInfoListResponse>(req, "DescribeVisitTopSumInfoList");
}
/// <summary>
/// 查询某时间段top n的域名或流id信息(暂支持top 1000)。
/// </summary>
/// <param name="req"><see cref="DescribeVisitTopSumInfoListRequest"/></param>
/// <returns><see cref="DescribeVisitTopSumInfoListResponse"/></returns>
public DescribeVisitTopSumInfoListResponse DescribeVisitTopSumInfoListSync(DescribeVisitTopSumInfoListRequest req)
{
return InternalRequestAsync<DescribeVisitTopSumInfoListResponse>(req, "DescribeVisitTopSumInfoList")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 断开推流连接,但可以重新推流。
/// 注:对已经不活跃的流,调用该断流接口时,接口返回成功。
/// </summary>
/// <param name="req"><see cref="DropLiveStreamRequest"/></param>
/// <returns><see cref="DropLiveStreamResponse"/></returns>
public Task<DropLiveStreamResponse> DropLiveStream(DropLiveStreamRequest req)
{
return InternalRequestAsync<DropLiveStreamResponse>(req, "DropLiveStream");
}
/// <summary>
/// 断开推流连接,但可以重新推流。
/// 注:对已经不活跃的流,调用该断流接口时,接口返回成功。
/// </summary>
/// <param name="req"><see cref="DropLiveStreamRequest"/></param>
/// <returns><see cref="DropLiveStreamResponse"/></returns>
public DropLiveStreamResponse DropLiveStreamSync(DropLiveStreamRequest req)
{
return InternalRequestAsync<DropLiveStreamResponse>(req, "DropLiveStream")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 启用状态为停用的直播域名。
/// </summary>
/// <param name="req"><see cref="EnableLiveDomainRequest"/></param>
/// <returns><see cref="EnableLiveDomainResponse"/></returns>
public Task<EnableLiveDomainResponse> EnableLiveDomain(EnableLiveDomainRequest req)
{
return InternalRequestAsync<EnableLiveDomainResponse>(req, "EnableLiveDomain");
}
/// <summary>
/// 启用状态为停用的直播域名。
/// </summary>
/// <param name="req"><see cref="EnableLiveDomainRequest"/></param>
/// <returns><see cref="EnableLiveDomainResponse"/></returns>
public EnableLiveDomainResponse EnableLiveDomainSync(EnableLiveDomainRequest req)
{
return InternalRequestAsync<EnableLiveDomainResponse>(req, "EnableLiveDomain")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 启用择优调度。
/// 注意:流维度的择优调度,当主备流结束后自动失效。
/// </summary>
/// <param name="req"><see cref="EnableOptimalSwitchingRequest"/></param>
/// <returns><see cref="EnableOptimalSwitchingResponse"/></returns>
public Task<EnableOptimalSwitchingResponse> EnableOptimalSwitching(EnableOptimalSwitchingRequest req)
{
return InternalRequestAsync<EnableOptimalSwitchingResponse>(req, "EnableOptimalSwitching");
}
/// <summary>
/// 启用择优调度。
/// 注意:流维度的择优调度,当主备流结束后自动失效。
/// </summary>
/// <param name="req"><see cref="EnableOptimalSwitchingRequest"/></param>
/// <returns><see cref="EnableOptimalSwitchingResponse"/></returns>
public EnableOptimalSwitchingResponse EnableOptimalSwitchingSync(EnableOptimalSwitchingRequest req)
{
return InternalRequestAsync<EnableOptimalSwitchingResponse>(req, "EnableOptimalSwitching")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 停止使用某个直播域名。
/// </summary>
/// <param name="req"><see cref="ForbidLiveDomainRequest"/></param>
/// <returns><see cref="ForbidLiveDomainResponse"/></returns>
public Task<ForbidLiveDomainResponse> ForbidLiveDomain(ForbidLiveDomainRequest req)
{
return InternalRequestAsync<ForbidLiveDomainResponse>(req, "ForbidLiveDomain");
}
/// <summary>
/// 停止使用某个直播域名。
/// </summary>
/// <param name="req"><see cref="ForbidLiveDomainRequest"/></param>
/// <returns><see cref="ForbidLiveDomainResponse"/></returns>
public ForbidLiveDomainResponse ForbidLiveDomainSync(ForbidLiveDomainRequest req)
{
return InternalRequestAsync<ForbidLiveDomainResponse>(req, "ForbidLiveDomain")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 禁止某条流的推送,可以预设某个时刻将流恢复。
/// 注意:
/// 1. 默认只要流名称正确,禁推就会生效。
/// 2. 如需要推流域名+推流路径+流名称 强匹配生效禁推,需提单联系售后开启配置。
/// 3. 如果配置了域名分组,需填写准确推流域名,才可断掉当前推流。
/// </summary>
/// <param name="req"><see cref="ForbidLiveStreamRequest"/></param>
/// <returns><see cref="ForbidLiveStreamResponse"/></returns>
public Task<ForbidLiveStreamResponse> ForbidLiveStream(ForbidLiveStreamRequest req)
{
return InternalRequestAsync<ForbidLiveStreamResponse>(req, "ForbidLiveStream");
}
/// <summary>
/// 禁止某条流的推送,可以预设某个时刻将流恢复。
/// 注意:
/// 1. 默认只要流名称正确,禁推就会生效。
/// 2. 如需要推流域名+推流路径+流名称 强匹配生效禁推,需提单联系售后开启配置。
/// 3. 如果配置了域名分组,需填写准确推流域名,才可断掉当前推流。
/// </summary>
/// <param name="req"><see cref="ForbidLiveStreamRequest"/></param>
/// <returns><see cref="ForbidLiveStreamResponse"/></returns>
public ForbidLiveStreamResponse ForbidLiveStreamSync(ForbidLiveStreamRequest req)
{
return InternalRequestAsync<ForbidLiveStreamResponse>(req, "ForbidLiveStream")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 修改回调模板。
/// </summary>
/// <param name="req"><see cref="ModifyLiveCallbackTemplateRequest"/></param>
/// <returns><see cref="ModifyLiveCallbackTemplateResponse"/></returns>
public Task<ModifyLiveCallbackTemplateResponse> ModifyLiveCallbackTemplate(ModifyLiveCallbackTemplateRequest req)
{
return InternalRequestAsync<ModifyLiveCallbackTemplateResponse>(req, "ModifyLiveCallbackTemplate");
}
/// <summary>
/// 修改回调模板。
/// </summary>
/// <param name="req"><see cref="ModifyLiveCallbackTemplateRequest"/></param>
/// <returns><see cref="ModifyLiveCallbackTemplateResponse"/></returns>
public ModifyLiveCallbackTemplateResponse ModifyLiveCallbackTemplateSync(ModifyLiveCallbackTemplateRequest req)
{
return InternalRequestAsync<ModifyLiveCallbackTemplateResponse>(req, "ModifyLiveCallbackTemplate")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 批量绑定证书对应的播放域名,并更新启用状态。
/// 新建自有证书将自动上传至腾讯云ssl。
/// </summary>
/// <param name="req"><see cref="ModifyLiveDomainCertBindingsRequest"/></param>
/// <returns><see cref="ModifyLiveDomainCertBindingsResponse"/></returns>
public Task<ModifyLiveDomainCertBindingsResponse> ModifyLiveDomainCertBindings(ModifyLiveDomainCertBindingsRequest req)
{
return InternalRequestAsync<ModifyLiveDomainCertBindingsResponse>(req, "ModifyLiveDomainCertBindings");
}
/// <summary>
/// 批量绑定证书对应的播放域名,并更新启用状态。
/// 新建自有证书将自动上传至腾讯云ssl。
/// </summary>
/// <param name="req"><see cref="ModifyLiveDomainCertBindingsRequest"/></param>
/// <returns><see cref="ModifyLiveDomainCertBindingsResponse"/></returns>
public ModifyLiveDomainCertBindingsResponse ModifyLiveDomainCertBindingsSync(ModifyLiveDomainCertBindingsRequest req)
{
return InternalRequestAsync<ModifyLiveDomainCertBindingsResponse>(req, "ModifyLiveDomainCertBindings")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 设置直播域名 Referer 黑白名单。
/// 由于 Referer 信息包含在 http 协议中,在开启配置后,播放协议为 rtmp 或 WebRTC 不会校验 Referer 配置,仍可正常播放。如需配置 Referer 鉴权建议使用 http-flv 或 http-hls 协议播放。
/// </summary>
/// <param name="req"><see cref="ModifyLiveDomainRefererRequest"/></param>
/// <returns><see cref="ModifyLiveDomainRefererResponse"/></returns>
public Task<ModifyLiveDomainRefererResponse> ModifyLiveDomainReferer(ModifyLiveDomainRefererRequest req)
{
return InternalRequestAsync<ModifyLiveDomainRefererResponse>(req, "ModifyLiveDomainReferer");
}
/// <summary>
/// 设置直播域名 Referer 黑白名单。
/// 由于 Referer 信息包含在 http 协议中,在开启配置后,播放协议为 rtmp 或 WebRTC 不会校验 Referer 配置,仍可正常播放。如需配置 Referer 鉴权建议使用 http-flv 或 http-hls 协议播放。
/// </summary>
/// <param name="req"><see cref="ModifyLiveDomainRefererRequest"/></param>
/// <returns><see cref="ModifyLiveDomainRefererResponse"/></returns>
public ModifyLiveDomainRefererResponse ModifyLiveDomainRefererSync(ModifyLiveDomainRefererRequest req)
{
return InternalRequestAsync<ModifyLiveDomainRefererResponse>(req, "ModifyLiveDomainReferer")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 修改直播垫片模板。
/// </summary>
/// <param name="req"><see cref="ModifyLivePadTemplateRequest"/></param>
/// <returns><see cref="ModifyLivePadTemplateResponse"/></returns>
public Task<ModifyLivePadTemplateResponse> ModifyLivePadTemplate(ModifyLivePadTemplateRequest req)
{
return InternalRequestAsync<ModifyLivePadTemplateResponse>(req, "ModifyLivePadTemplate");
}
/// <summary>
/// 修改直播垫片模板。
/// </summary>
/// <param name="req"><see cref="ModifyLivePadTemplateRequest"/></param>
/// <returns><see cref="ModifyLivePadTemplateResponse"/></returns>
public ModifyLivePadTemplateResponse ModifyLivePadTemplateSync(ModifyLivePadTemplateRequest req)
{
return InternalRequestAsync<ModifyLivePadTemplateResponse>(req, "ModifyLivePadTemplate")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 修改播放鉴权key
/// </summary>
/// <param name="req"><see cref="ModifyLivePlayAuthKeyRequest"/></param>
/// <returns><see cref="ModifyLivePlayAuthKeyResponse"/></returns>
public Task<ModifyLivePlayAuthKeyResponse> ModifyLivePlayAuthKey(ModifyLivePlayAuthKeyRequest req)
{
return InternalRequestAsync<ModifyLivePlayAuthKeyResponse>(req, "ModifyLivePlayAuthKey");
}
/// <summary>
/// 修改播放鉴权key
/// </summary>
/// <param name="req"><see cref="ModifyLivePlayAuthKeyRequest"/></param>
/// <returns><see cref="ModifyLivePlayAuthKeyResponse"/></returns>
public ModifyLivePlayAuthKeyResponse ModifyLivePlayAuthKeySync(ModifyLivePlayAuthKeyRequest req)
{
return InternalRequestAsync<ModifyLivePlayAuthKeyResponse>(req, "ModifyLivePlayAuthKey")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 修改播放域名信息。
/// </summary>
/// <param name="req"><see cref="ModifyLivePlayDomainRequest"/></param>
/// <returns><see cref="ModifyLivePlayDomainResponse"/></returns>
public Task<ModifyLivePlayDomainResponse> ModifyLivePlayDomain(ModifyLivePlayDomainRequest req)
{
return InternalRequestAsync<ModifyLivePlayDomainResponse>(req, "ModifyLivePlayDomain");
}
/// <summary>
/// 修改播放域名信息。
/// </summary>
/// <param name="req"><see cref="ModifyLivePlayDomainRequest"/></param>
/// <returns><see cref="ModifyLivePlayDomainResponse"/></returns>
public ModifyLivePlayDomainResponse ModifyLivePlayDomainSync(ModifyLivePlayDomainRequest req)
{
return InternalRequestAsync<ModifyLivePlayDomainResponse>(req, "ModifyLivePlayDomain")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 更新直播拉流任务。
/// 1. 不支持修改拉流源类型,如需更换,请创建新任务。
/// </summary>
/// <param name="req"><see cref="ModifyLivePullStreamTaskRequest"/></param>
/// <returns><see cref="ModifyLivePullStreamTaskResponse"/></returns>
public Task<ModifyLivePullStreamTaskResponse> ModifyLivePullStreamTask(ModifyLivePullStreamTaskRequest req)
{
return InternalRequestAsync<ModifyLivePullStreamTaskResponse>(req, "ModifyLivePullStreamTask");
}
/// <summary>
/// 更新直播拉流任务。
/// 1. 不支持修改拉流源类型,如需更换,请创建新任务。
/// </summary>
/// <param name="req"><see cref="ModifyLivePullStreamTaskRequest"/></param>
/// <returns><see cref="ModifyLivePullStreamTaskResponse"/></returns>
public ModifyLivePullStreamTaskResponse ModifyLivePullStreamTaskSync(ModifyLivePullStreamTaskRequest req)
{
return InternalRequestAsync<ModifyLivePullStreamTaskResponse>(req, "ModifyLivePullStreamTask")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 修改直播推流鉴权key
/// </summary>
/// <param name="req"><see cref="ModifyLivePushAuthKeyRequest"/></param>
/// <returns><see cref="ModifyLivePushAuthKeyResponse"/></returns>
public Task<ModifyLivePushAuthKeyResponse> ModifyLivePushAuthKey(ModifyLivePushAuthKeyRequest req)
{
return InternalRequestAsync<ModifyLivePushAuthKeyResponse>(req, "ModifyLivePushAuthKey");
}
/// <summary>
/// 修改直播推流鉴权key
/// </summary>
/// <param name="req"><see cref="ModifyLivePushAuthKeyRequest"/></param>
/// <returns><see cref="ModifyLivePushAuthKeyResponse"/></returns>
public ModifyLivePushAuthKeyResponse ModifyLivePushAuthKeySync(ModifyLivePushAuthKeyRequest req)
{
return InternalRequestAsync<ModifyLivePushAuthKeyResponse>(req, "ModifyLivePushAuthKey")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 修改录制模板配置。
/// </summary>
/// <param name="req"><see cref="ModifyLiveRecordTemplateRequest"/></param>
/// <returns><see cref="ModifyLiveRecordTemplateResponse"/></returns>
public Task<ModifyLiveRecordTemplateResponse> ModifyLiveRecordTemplate(ModifyLiveRecordTemplateRequest req)
{
return InternalRequestAsync<ModifyLiveRecordTemplateResponse>(req, "ModifyLiveRecordTemplate");
}
/// <summary>
/// 修改录制模板配置。
/// </summary>
/// <param name="req"><see cref="ModifyLiveRecordTemplateRequest"/></param>
/// <returns><see cref="ModifyLiveRecordTemplateResponse"/></returns>
public ModifyLiveRecordTemplateResponse ModifyLiveRecordTemplateSync(ModifyLiveRecordTemplateRequest req)
{
return InternalRequestAsync<ModifyLiveRecordTemplateResponse>(req, "ModifyLiveRecordTemplate")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 修改截图模板配置。
/// </summary>
/// <param name="req"><see cref="ModifyLiveSnapshotTemplateRequest"/></param>
/// <returns><see cref="ModifyLiveSnapshotTemplateResponse"/></returns>
public Task<ModifyLiveSnapshotTemplateResponse> ModifyLiveSnapshotTemplate(ModifyLiveSnapshotTemplateRequest req)
{
return InternalRequestAsync<ModifyLiveSnapshotTemplateResponse>(req, "ModifyLiveSnapshotTemplate");
}
/// <summary>
/// 修改截图模板配置。
/// </summary>
/// <param name="req"><see cref="ModifyLiveSnapshotTemplateRequest"/></param>
/// <returns><see cref="ModifyLiveSnapshotTemplateResponse"/></returns>
public ModifyLiveSnapshotTemplateResponse ModifyLiveSnapshotTemplateSync(ModifyLiveSnapshotTemplateRequest req)
{
return InternalRequestAsync<ModifyLiveSnapshotTemplateResponse>(req, "ModifyLiveSnapshotTemplate")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 该接口用来修改直播流监播任务的配置。
/// </summary>
/// <param name="req"><see cref="ModifyLiveStreamMonitorRequest"/></param>
/// <returns><see cref="ModifyLiveStreamMonitorResponse"/></returns>
public Task<ModifyLiveStreamMonitorResponse> ModifyLiveStreamMonitor(ModifyLiveStreamMonitorRequest req)
{
return InternalRequestAsync<ModifyLiveStreamMonitorResponse>(req, "ModifyLiveStreamMonitor");
}
/// <summary>
/// 该接口用来修改直播流监播任务的配置。
/// </summary>
/// <param name="req"><see cref="ModifyLiveStreamMonitorRequest"/></param>
/// <returns><see cref="ModifyLiveStreamMonitorResponse"/></returns>
public ModifyLiveStreamMonitorResponse ModifyLiveStreamMonitorSync(ModifyLiveStreamMonitorRequest req)
{
return InternalRequestAsync<ModifyLiveStreamMonitorResponse>(req, "ModifyLiveStreamMonitor")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 修改直播时移模板。
/// </summary>
/// <param name="req"><see cref="ModifyLiveTimeShiftTemplateRequest"/></param>
/// <returns><see cref="ModifyLiveTimeShiftTemplateResponse"/></returns>
public Task<ModifyLiveTimeShiftTemplateResponse> ModifyLiveTimeShiftTemplate(ModifyLiveTimeShiftTemplateRequest req)
{
return InternalRequestAsync<ModifyLiveTimeShiftTemplateResponse>(req, "ModifyLiveTimeShiftTemplate");
}
/// <summary>
/// 修改直播时移模板。
/// </summary>
/// <param name="req"><see cref="ModifyLiveTimeShiftTemplateRequest"/></param>
/// <returns><see cref="ModifyLiveTimeShiftTemplateResponse"/></returns>
public ModifyLiveTimeShiftTemplateResponse ModifyLiveTimeShiftTemplateSync(ModifyLiveTimeShiftTemplateRequest req)
{
return InternalRequestAsync<ModifyLiveTimeShiftTemplateResponse>(req, "ModifyLiveTimeShiftTemplate")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 修改转码模板配置。
/// </summary>
/// <param name="req"><see cref="ModifyLiveTranscodeTemplateRequest"/></param>
/// <returns><see cref="ModifyLiveTranscodeTemplateResponse"/></returns>
public Task<ModifyLiveTranscodeTemplateResponse> ModifyLiveTranscodeTemplate(ModifyLiveTranscodeTemplateRequest req)
{
return InternalRequestAsync<ModifyLiveTranscodeTemplateResponse>(req, "ModifyLiveTranscodeTemplate");
}
/// <summary>
/// 修改转码模板配置。
/// </summary>
/// <param name="req"><see cref="ModifyLiveTranscodeTemplateRequest"/></param>
/// <returns><see cref="ModifyLiveTranscodeTemplateResponse"/></returns>
public ModifyLiveTranscodeTemplateResponse ModifyLiveTranscodeTemplateSync(ModifyLiveTranscodeTemplateRequest req)
{
return InternalRequestAsync<ModifyLiveTranscodeTemplateResponse>(req, "ModifyLiveTranscodeTemplate")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 更新拉流配置。该接口为已下线接口,请使用新接口 ModifyLivePullStreamTask。
/// </summary>
/// <param name="req"><see cref="ModifyPullStreamConfigRequest"/></param>
/// <returns><see cref="ModifyPullStreamConfigResponse"/></returns>
public Task<ModifyPullStreamConfigResponse> ModifyPullStreamConfig(ModifyPullStreamConfigRequest req)
{
return InternalRequestAsync<ModifyPullStreamConfigResponse>(req, "ModifyPullStreamConfig");
}
/// <summary>
/// 更新拉流配置。该接口为已下线接口,请使用新接口 ModifyLivePullStreamTask。
/// </summary>
/// <param name="req"><see cref="ModifyPullStreamConfigRequest"/></param>
/// <returns><see cref="ModifyPullStreamConfigResponse"/></returns>
public ModifyPullStreamConfigResponse ModifyPullStreamConfigSync(ModifyPullStreamConfigRequest req)
{
return InternalRequestAsync<ModifyPullStreamConfigResponse>(req, "ModifyPullStreamConfig")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 修改直播拉流配置的状态。该接口已下线,请使用新接口 ModifyLivePullStreamTask。
/// </summary>
/// <param name="req"><see cref="ModifyPullStreamStatusRequest"/></param>
/// <returns><see cref="ModifyPullStreamStatusResponse"/></returns>
public Task<ModifyPullStreamStatusResponse> ModifyPullStreamStatus(ModifyPullStreamStatusRequest req)
{
return InternalRequestAsync<ModifyPullStreamStatusResponse>(req, "ModifyPullStreamStatus");
}
/// <summary>
/// 修改直播拉流配置的状态。该接口已下线,请使用新接口 ModifyLivePullStreamTask。
/// </summary>
/// <param name="req"><see cref="ModifyPullStreamStatusRequest"/></param>
/// <returns><see cref="ModifyPullStreamStatusResponse"/></returns>
public ModifyPullStreamStatusResponse ModifyPullStreamStatusSync(ModifyPullStreamStatusRequest req)
{
return InternalRequestAsync<ModifyPullStreamStatusResponse>(req, "ModifyPullStreamStatus")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 将正在运行的拉流转推任务进行重启。
/// 注意:
/// 1. 重启任务会造成推流中断。
/// 2. 点播源任务的重启,会根据VodRefreshType决定是续播还是从头开始播。
/// </summary>
/// <param name="req"><see cref="RestartLivePullStreamTaskRequest"/></param>
/// <returns><see cref="RestartLivePullStreamTaskResponse"/></returns>
public Task<RestartLivePullStreamTaskResponse> RestartLivePullStreamTask(RestartLivePullStreamTaskRequest req)
{
return InternalRequestAsync<RestartLivePullStreamTaskResponse>(req, "RestartLivePullStreamTask");
}
/// <summary>
/// 将正在运行的拉流转推任务进行重启。
/// 注意:
/// 1. 重启任务会造成推流中断。
/// 2. 点播源任务的重启,会根据VodRefreshType决定是续播还是从头开始播。
/// </summary>
/// <param name="req"><see cref="RestartLivePullStreamTaskRequest"/></param>
/// <returns><see cref="RestartLivePullStreamTaskResponse"/></returns>
public RestartLivePullStreamTaskResponse RestartLivePullStreamTaskSync(RestartLivePullStreamTaskRequest req)
{
return InternalRequestAsync<RestartLivePullStreamTaskResponse>(req, "RestartLivePullStreamTask")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 取消直播流设置的延时配置,恢复实时直播画面。
/// </summary>
/// <param name="req"><see cref="ResumeDelayLiveStreamRequest"/></param>
/// <returns><see cref="ResumeDelayLiveStreamResponse"/></returns>
public Task<ResumeDelayLiveStreamResponse> ResumeDelayLiveStream(ResumeDelayLiveStreamRequest req)
{
return InternalRequestAsync<ResumeDelayLiveStreamResponse>(req, "ResumeDelayLiveStream");
}
/// <summary>
/// 取消直播流设置的延时配置,恢复实时直播画面。
/// </summary>
/// <param name="req"><see cref="ResumeDelayLiveStreamRequest"/></param>
/// <returns><see cref="ResumeDelayLiveStreamResponse"/></returns>
public ResumeDelayLiveStreamResponse ResumeDelayLiveStreamSync(ResumeDelayLiveStreamRequest req)
{
return InternalRequestAsync<ResumeDelayLiveStreamResponse>(req, "ResumeDelayLiveStream")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 恢复某条流的推流。
/// </summary>
/// <param name="req"><see cref="ResumeLiveStreamRequest"/></param>
/// <returns><see cref="ResumeLiveStreamResponse"/></returns>
public Task<ResumeLiveStreamResponse> ResumeLiveStream(ResumeLiveStreamRequest req)
{
return InternalRequestAsync<ResumeLiveStreamResponse>(req, "ResumeLiveStream");
}
/// <summary>
/// 恢复某条流的推流。
/// </summary>
/// <param name="req"><see cref="ResumeLiveStreamRequest"/></param>
/// <returns><see cref="ResumeLiveStreamResponse"/></returns>
public ResumeLiveStreamResponse ResumeLiveStreamSync(ResumeLiveStreamRequest req)
{
return InternalRequestAsync<ResumeLiveStreamResponse>(req, "ResumeLiveStream")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 该接口用来启动直播流监播任务。
/// </summary>
/// <param name="req"><see cref="StartLiveStreamMonitorRequest"/></param>
/// <returns><see cref="StartLiveStreamMonitorResponse"/></returns>
public Task<StartLiveStreamMonitorResponse> StartLiveStreamMonitor(StartLiveStreamMonitorRequest req)
{
return InternalRequestAsync<StartLiveStreamMonitorResponse>(req, "StartLiveStreamMonitor");
}
/// <summary>
/// 该接口用来启动直播流监播任务。
/// </summary>
/// <param name="req"><see cref="StartLiveStreamMonitorRequest"/></param>
/// <returns><see cref="StartLiveStreamMonitorResponse"/></returns>
public StartLiveStreamMonitorResponse StartLiveStreamMonitorSync(StartLiveStreamMonitorRequest req)
{
return InternalRequestAsync<StartLiveStreamMonitorResponse>(req, "StartLiveStreamMonitor")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 使用该接口停止垫片流。
/// </summary>
/// <param name="req"><see cref="StopLivePadProcessorRequest"/></param>
/// <returns><see cref="StopLivePadProcessorResponse"/></returns>
public Task<StopLivePadProcessorResponse> StopLivePadProcessor(StopLivePadProcessorRequest req)
{
return InternalRequestAsync<StopLivePadProcessorResponse>(req, "StopLivePadProcessor");
}
/// <summary>
/// 使用该接口停止垫片流。
/// </summary>
/// <param name="req"><see cref="StopLivePadProcessorRequest"/></param>
/// <returns><see cref="StopLivePadProcessorResponse"/></returns>
public StopLivePadProcessorResponse StopLivePadProcessorSync(StopLivePadProcessorRequest req)
{
return InternalRequestAsync<StopLivePadProcessorResponse>(req, "StopLivePadProcessor")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 说明:录制后的文件存放于点播平台。用户如需使用录制功能,需首先自行开通点播账号并确保账号可用。录制文件存放后,相关费用(含存储以及下行播放流量)按照点播平台计费方式收取,请参考对应文档。
/// </summary>
/// <param name="req"><see cref="StopLiveRecordRequest"/></param>
/// <returns><see cref="StopLiveRecordResponse"/></returns>
public Task<StopLiveRecordResponse> StopLiveRecord(StopLiveRecordRequest req)
{
return InternalRequestAsync<StopLiveRecordResponse>(req, "StopLiveRecord");
}
/// <summary>
/// 说明:录制后的文件存放于点播平台。用户如需使用录制功能,需首先自行开通点播账号并确保账号可用。录制文件存放后,相关费用(含存储以及下行播放流量)按照点播平台计费方式收取,请参考对应文档。
/// </summary>
/// <param name="req"><see cref="StopLiveRecordRequest"/></param>
/// <returns><see cref="StopLiveRecordResponse"/></returns>
public StopLiveRecordResponse StopLiveRecordSync(StopLiveRecordRequest req)
{
return InternalRequestAsync<StopLiveRecordResponse>(req, "StopLiveRecord")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 该接口用来停止直播流监播任务。
/// </summary>
/// <param name="req"><see cref="StopLiveStreamMonitorRequest"/></param>
/// <returns><see cref="StopLiveStreamMonitorResponse"/></returns>
public Task<StopLiveStreamMonitorResponse> StopLiveStreamMonitor(StopLiveStreamMonitorRequest req)
{
return InternalRequestAsync<StopLiveStreamMonitorResponse>(req, "StopLiveStreamMonitor");
}
/// <summary>
/// 该接口用来停止直播流监播任务。
/// </summary>
/// <param name="req"><see cref="StopLiveStreamMonitorRequest"/></param>
/// <returns><see cref="StopLiveStreamMonitorResponse"/></returns>
public StopLiveStreamMonitorResponse StopLiveStreamMonitorSync(StopLiveStreamMonitorRequest req)
{
return InternalRequestAsync<StopLiveStreamMonitorResponse>(req, "StopLiveStreamMonitor")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 提前结束录制,中止运行中的录制任务并生成录制文件。任务被成功终止后,本次任务将不再启动。
/// </summary>
/// <param name="req"><see cref="StopRecordTaskRequest"/></param>
/// <returns><see cref="StopRecordTaskResponse"/></returns>
public Task<StopRecordTaskResponse> StopRecordTask(StopRecordTaskRequest req)
{
return InternalRequestAsync<StopRecordTaskResponse>(req, "StopRecordTask");
}
/// <summary>
/// 提前结束录制,中止运行中的录制任务并生成录制文件。任务被成功终止后,本次任务将不再启动。
/// </summary>
/// <param name="req"><see cref="StopRecordTaskRequest"/></param>
/// <returns><see cref="StopRecordTaskResponse"/></returns>
public StopRecordTaskResponse StopRecordTaskSync(StopRecordTaskRequest req)
{
return InternalRequestAsync<StopRecordTaskResponse>(req, "StopRecordTask")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 提前结束截图,中止运行中的截图任务。任务被成功终止后,本次任务将不再启动。
/// </summary>
/// <param name="req"><see cref="StopScreenshotTaskRequest"/></param>
/// <returns><see cref="StopScreenshotTaskResponse"/></returns>
public Task<StopScreenshotTaskResponse> StopScreenshotTask(StopScreenshotTaskRequest req)
{
return InternalRequestAsync<StopScreenshotTaskResponse>(req, "StopScreenshotTask");
}
/// <summary>
/// 提前结束截图,中止运行中的截图任务。任务被成功终止后,本次任务将不再启动。
/// </summary>
/// <param name="req"><see cref="StopScreenshotTaskRequest"/></param>
/// <returns><see cref="StopScreenshotTaskResponse"/></returns>
public StopScreenshotTaskResponse StopScreenshotTaskSync(StopScreenshotTaskRequest req)
{
return InternalRequestAsync<StopScreenshotTaskResponse>(req, "StopScreenshotTask")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 调用该接口实现切换当前播放所使用的主备流。
/// </summary>
/// <param name="req"><see cref="SwitchBackupStreamRequest"/></param>
/// <returns><see cref="SwitchBackupStreamResponse"/></returns>
public Task<SwitchBackupStreamResponse> SwitchBackupStream(SwitchBackupStreamRequest req)
{
return InternalRequestAsync<SwitchBackupStreamResponse>(req, "SwitchBackupStream");
}
/// <summary>
/// 调用该接口实现切换当前播放所使用的主备流。
/// </summary>
/// <param name="req"><see cref="SwitchBackupStreamRequest"/></param>
/// <returns><see cref="SwitchBackupStreamResponse"/></returns>
public SwitchBackupStreamResponse SwitchBackupStreamSync(SwitchBackupStreamRequest req)
{
return InternalRequestAsync<SwitchBackupStreamResponse>(req, "SwitchBackupStream")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 解绑域名证书
/// </summary>
/// <param name="req"><see cref="UnBindLiveDomainCertRequest"/></param>
/// <returns><see cref="UnBindLiveDomainCertResponse"/></returns>
public Task<UnBindLiveDomainCertResponse> UnBindLiveDomainCert(UnBindLiveDomainCertRequest req)
{
return InternalRequestAsync<UnBindLiveDomainCertResponse>(req, "UnBindLiveDomainCert");
}
/// <summary>
/// 解绑域名证书
/// </summary>
/// <param name="req"><see cref="UnBindLiveDomainCertRequest"/></param>
/// <returns><see cref="UnBindLiveDomainCertResponse"/></returns>
public UnBindLiveDomainCertResponse UnBindLiveDomainCertSync(UnBindLiveDomainCertRequest req)
{
return InternalRequestAsync<UnBindLiveDomainCertResponse>(req, "UnBindLiveDomainCert")
.ConfigureAwait(false).GetAwaiter().GetResult();
}
/// <summary>
/// 更新水印。
/// </summary>
/// <param name="req"><see cref="UpdateLiveWatermarkRequest"/></param>
/// <returns><see cref="UpdateLiveWatermarkResponse"/></returns>
public Task<UpdateLiveWatermarkResponse> UpdateLiveWatermark(UpdateLiveWatermarkRequest req)
{
return InternalRequestAsync<UpdateLiveWatermarkResponse>(req, "UpdateLiveWatermark");
}
/// <summary>
/// 更新水印。
/// </summary>
/// <param name="req"><see cref="UpdateLiveWatermarkRequest"/></param>
/// <returns><see cref="UpdateLiveWatermarkResponse"/></returns>
public UpdateLiveWatermarkResponse Up