コード例 #1
0
        /// <summary>
        /// create
        /// </summary>
        /// <param name="audioSources"> The audio_sources </param>
        /// <param name="videoSources"> The video_sources </param>
        /// <param name="videoLayout"> The video_layout </param>
        /// <param name="resolution"> The resolution </param>
        /// <param name="format"> The format </param>
        /// <param name="desiredBitrate"> The desired_bitrate </param>
        /// <param name="desiredMaxDuration"> The desired_max_duration </param>
        /// <param name="statusCallback"> The status_callback </param>
        /// <param name="statusCallbackMethod"> The status_callback_method </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> A single instance of Composition </returns>
        public static CompositionResource Create(List <string> audioSources = null,
                                                 List <string> videoSources = null,
                                                 CompositionResource.VideoLayoutEnum videoLayout = null,
                                                 string resolution = null,
                                                 CompositionResource.FormatEnum format = null,
                                                 int?desiredBitrate     = null,
                                                 int?desiredMaxDuration = null,
                                                 Uri statusCallback     = null,
                                                 Twilio.Http.HttpMethod statusCallbackMethod = null,
                                                 ITwilioRestClient client = null)
        {
            var options = new CreateCompositionOptions()
            {
                AudioSources = audioSources, VideoSources = videoSources, VideoLayout = videoLayout, Resolution = resolution, Format = format, DesiredBitrate = desiredBitrate, DesiredMaxDuration = desiredMaxDuration, StatusCallback = statusCallback, StatusCallbackMethod = statusCallbackMethod
            };

            return(Create(options, client));
        }
コード例 #2
0
        /// <summary>
        /// create
        /// </summary>
        /// <param name="audioSources"> The audio_sources </param>
        /// <param name="videoSources"> The video_sources </param>
        /// <param name="videoLayout"> The video_layout </param>
        /// <param name="resolution"> The resolution </param>
        /// <param name="format"> The format </param>
        /// <param name="desiredBitrate"> The desired_bitrate </param>
        /// <param name="desiredMaxDuration"> The desired_max_duration </param>
        /// <param name="statusCallback"> The status_callback </param>
        /// <param name="statusCallbackMethod"> The status_callback_method </param>
        /// <param name="trim"> The trim </param>
        /// <param name="reuse"> The reuse </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> Task that resolves to A single instance of Composition </returns>
        public static async System.Threading.Tasks.Task <CompositionResource> CreateAsync(List <string> audioSources = null,
                                                                                          List <string> videoSources = null,
                                                                                          CompositionResource.VideoLayoutEnum videoLayout = null,
                                                                                          string resolution = null,
                                                                                          CompositionResource.FormatEnum format = null,
                                                                                          int?desiredBitrate     = null,
                                                                                          int?desiredMaxDuration = null,
                                                                                          Uri statusCallback     = null,
                                                                                          Twilio.Http.HttpMethod statusCallbackMethod = null,
                                                                                          bool?trim  = null,
                                                                                          bool?reuse = null,
                                                                                          ITwilioRestClient client = null)
        {
            var options = new CreateCompositionOptions()
            {
                AudioSources = audioSources, VideoSources = videoSources, VideoLayout = videoLayout, Resolution = resolution, Format = format, DesiredBitrate = desiredBitrate, DesiredMaxDuration = desiredMaxDuration, StatusCallback = statusCallback, StatusCallbackMethod = statusCallbackMethod, Trim = trim, Reuse = reuse
            };

            return(await CreateAsync(options, client));
        }