internal static MEETINGMANAGE_PubLiveStreamParam ToStruct(this PublishLiveStreamParameter model) { MEETINGMANAGE_PubLiveStreamParam param = new MEETINGMANAGE_PubLiveStreamParam(); param.mediaType = (MEETINGMANAGE_MediaType)model.MediaType; param.sType = (MEETINGMANAGE_StreamType)model.StreamType; param.sParam.Url1 = model.LiveParameter.Url1; param.sParam.Url2 = model.LiveParameter.Url2; param.sParam.vBitrate = model.LiveParameter.VideoBitrate; param.sParam.width = model.LiveParameter.Width; param.sParam.aBitrate = model.LiveParameter.AudioBitrate; param.sParam.bitspersample = model.LiveParameter.BitsPerSample; param.sParam.channels = model.LiveParameter.Channels; param.sParam.filepath = model.LiveParameter.FilePath; param.sParam.height = model.LiveParameter.Height; param.sParam.isLive = model.LiveParameter.IsLive ? 1 : 0; param.sParam.isRecord = model.LiveParameter.IsRecord ? 1 : 0; param.sParam.samplerate = model.LiveParameter.SampleRate; return(param); }
internal static extern int PublishLiveStream(MEETINGMANAGE_PubLiveStreamParam param);