You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
usingMK.IO;usingMK.IO.Models;// **********************// MK/IO Client creation// **********************varclient=newMKIOClient("mkiosubscriptionname","mkiotoken");// *********************************// live event and output operations// *********************************varlist_le=client.LiveEvents.List();// CreationvarliveEvent=client.LiveEvents.Create(MKIOClient.GenerateUniqueName("liveevent"),"francecentral",newLiveEventProperties{Input=newLiveEventInput{StreamingProtocol=LiveEventInputProtocol.RTMP},StreamOptions=newList<string>{"Default"},Encoding=newLiveEventEncoding{EncodingType=LiveEventEncodingType.PassthroughBasic}});// create live output assetvarnameOutputAsset=MKIOClient.GenerateUniqueName("liveoutput");varliveOutputAsset=client.Assets.CreateOrUpdate(nameOutputAsset,"asset-"+nameOutputAsset,config["StorageName"],"live output asset");varlo=client.LiveOutputs.Create(liveEvent.Name,MKIOClient.GenerateUniqueName("liveOutput"),newLiveOutputProperties{ArchiveWindowLength="PT5M",AssetName=nameOutputAsset});// live outputs listing for this live eventvarliveOutputs=client.LiveOutputs.List(liveEvent.Name);if(liveOutputs.Count==1){varlooo=client.LiveOutputs.Get(le.Name,liveOutputs.First().Name);}// Deleteclient.LiveEvents.Delete("liveevent4");