BuildIt.CognitiveServices.VideoAPIExtensions.ThumbnailAsync C# (CSharp) Метод

ThumbnailAsync() публичный статический Метод

Generates a motion thumbnail from a video. The Video Thumbnail API provides an automatic summary for videos to let people see a preview or snapshot quickly. Selection of scenes from a video create a preview in form of a short video. <br/> &bull; The supported input video formats include MP4, MOV, and WMV. Video file size should be no larger than 100MB. <br/> &bull; The number of scenes displayed in the thumbnail is either chosen by the user or defaults to the optimal duration supported by the Video API’s algorithm.<br/> &bull; A scene is a collection of indexed frames. Scenes are mapped according to sequence in video. <br/> &bull; Fade in/fade out effects are included in the thumbnail by default, but can be turned off by the user. <br/> &bull; Audio is included by default, but can be turned off by the user. Pauses in audio are detected to divide video into coherent scenes and avoid breaking sentences of speech.<br/> &bull; Output files are deleted after 24 hours.<br/> <br/> * Optimal Duration of Video Thumbnail Supported by Video API shown in table below. <table class="element table"> <thead> </thead> <tbody> <tr> <td>Motion Thumbnail</td> </tr> <tr> <td>Video duration (d)</td> <td>d < 3min</td> <td>3min < d < 15min</td> <td>15min < d < 30min</td> <td>30min < d</td> </tr> <tr> <td>Thumbnail duration</td> <td>15sec (2-3 scenes)</td> <td>30sec (3-5 scenes)</td> <td>60sec (5-10 scenes)</td> <td>90sec (10-15 scenes)</td> </tr> <tbody> </table>
public static ThumbnailAsync ( this operations, double maxMotionThumbnailDurationInSecs = default(double?), bool outputAudio = default(bool?), bool fadeInFadeOut = default(bool?), string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string), System cancellationToken = default(System.Threading.CancellationToken) ) : System.Threading.Tasks.Task
operations this /// The operations group for this extension method. ///
maxMotionThumbnailDurationInSecs double /// Specifies maximum duration of output video (in seconds). The default value /// is 0, which indicates the duration will be automatically decided by the /// algorithm. ///
outputAudio bool /// Indicates whether output video should include audio track. The default /// value is true. ///
fadeInFadeOut bool /// Indicates whether output video should have fade in/out effect during scene /// changes. The default value is true. ///
subscriptionKey string /// subscription key in url ///
ocpApimSubscriptionKey string /// subscription key in header ///
cancellationToken System /// The cancellation token. ///
Результат System.Threading.Tasks.Task
            public static async System.Threading.Tasks.Task ThumbnailAsync(this IVideoAPI operations, double? maxMotionThumbnailDurationInSecs = default(double?), bool? outputAudio = default(bool?), bool? fadeInFadeOut = default(bool?), string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
            {
                await operations.ThumbnailWithHttpMessagesAsync(maxMotionThumbnailDurationInSecs, outputAudio, fadeInFadeOut, subscriptionKey, ocpApimSubscriptionKey, null, cancellationToken).ConfigureAwait(false);
            }