MediaCapturePauseResult
MediaCapturePauseResult
MediaCapturePauseResult
MediaCapturePauseResult
Class
Definition
Provides the last frame captured and the recorded duration of a media capture operation that has been paused.
public : sealed class MediaCapturePauseResult : IClosable, IMediaCapturePauseResultpublic sealed class MediaCapturePauseResult : IDisposable, IMediaCapturePauseResultPublic NotInheritable Class MediaCapturePauseResult Implements IDisposable, IMediaCapturePauseResult// You can use this class in JavaScript.
- Attributes
| Device family |
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v3)
|
Remarks
Get an instance of this class by calling PauseRecordWithResultAsync.
For how-to guidance for pausing and resuming while recording video, see Basic photo, video, and audio capture with MediaCapture.
Properties
LastFrame LastFrame LastFrame LastFrame
Gets a VideoFrame representing the last frame captured before the capture operation was paused.
public : VideoFrame LastFrame { get; }public VideoFrame LastFrame { get; }Public ReadOnly Property LastFrame As VideoFrame// You can use this property in JavaScript.
The last frame captured before the capture operation was paused.
Remarks
You can display the frame semi-transparently over the capture preview to help the user to align the camera with the last captured frame before they resume capturing.
RecordDuration RecordDuration RecordDuration RecordDuration
Gets the duration of the media captured before the capture operation was paused.
public : TimeSpan RecordDuration { get; }public TimeSpan RecordDuration { get; }Public ReadOnly Property RecordDuration As TimeSpan// You can use this property in JavaScript.
- Value
- TimeSpan TimeSpan TimeSpan TimeSpan
The duration of the media captured before the capture operation was paused.
Methods
Close() Close() Close() Close()
Closes the object and disposes of associated resources.
public : void Close()This member is not implemented in C#This member is not implemented in VB.Net// You can use this method in JavaScript.
Remarks
The Close method is used by Universal Windows app using JavaScript. For apps written using the .NET Framework 4.5 in C# and VB.NET, the Close method is exposed as the Dispose() method on the MediaCapturePauseResult object. For apps written in C++, the Close method will be called when using the delete keyword on the object.