ScreenCapture
ScreenCapture
ScreenCapture
ScreenCapture
Class
Definition
Enables an app to capture audio and video of the contents being displayed on the device.
public : sealed class ScreenCapture : IScreenCapturepublic sealed class ScreenCapture : IScreenCapturePublic NotInheritable Class ScreenCapture Implements IScreenCapture// You can use this class in JavaScript.
- Attributes
| Device family |
Windows Mobile Extension SDK (introduced v10.0.10240.0)
|
| API contract |
Windows.Phone.PhoneContract (introduced v1)
|
Remarks
Important
The ScreenCapture feature is only supported for mobile devices running Windows Phone 8.1. This API is not supported on Windows 10.
Properties
AudioSource AudioSource AudioSource AudioSource
Gets the audio source used for screen capture.
public : IMediaSource AudioSource { get; }public IMediaSource AudioSource { get; }Public ReadOnly Property AudioSource As IMediaSource// You can use this property in JavaScript.
The audio source used for screen capture.
Remarks
Important
The ScreenCapture feature is only supported for mobile devices running Windows Phone 8.1. This API is not supported on Windows 10.
Use this property to set the AudioSource property of the MediaCaptureInitializationSettings object that you use to initialize a MediaCapture object.
IsAudioSuspended IsAudioSuspended IsAudioSuspended IsAudioSuspended
Gets whether the screen capture of audio is currently suspended.
public : PlatForm::Boolean IsAudioSuspended { get; }public bool IsAudioSuspended { get; }Public ReadOnly Property IsAudioSuspended As bool// You can use this property in JavaScript.
- Value
- PlatForm::Boolean bool bool bool
Whether the screen capture audio is currently suspended.
Remarks
Important
The ScreenCapture feature is only supported for mobile devices running Windows Phone 8.1. This API is not supported on Windows 10.
The recording of audio during screen capture is suspended when protected audio content, such as content protected by DRM, is played. You can check this property before beginning a screen capture and you can also handle the SourceSuspensionChanged event to be notified if audio is suspended while you are recording.
IsVideoSuspended IsVideoSuspended IsVideoSuspended IsVideoSuspended
Gets whether the screen capture of video is currently suspended.
public : PlatForm::Boolean IsVideoSuspended { get; }public bool IsVideoSuspended { get; }Public ReadOnly Property IsVideoSuspended As bool// You can use this property in JavaScript.
- Value
- PlatForm::Boolean bool bool bool
Whether the screen capture of video is currently suspended.
Remarks
Important
The ScreenCapture feature is only supported for mobile devices running Windows Phone 8.1. This API is not supported on Windows 10.
The recording of video during screen capture is suspended when protected content, such as an incoming phone call notification, is displayed on the screen. You can check this property before beginning a screen capture and you can also handle the SourceSuspensionChanged event to be notified if video is suspended while you are recording.
VideoSource VideoSource VideoSource VideoSource
Gets the video source used for screen capture.
public : IMediaSource VideoSource { get; }public IMediaSource VideoSource { get; }Public ReadOnly Property VideoSource As IMediaSource// You can use this property in JavaScript.
The video source used for screen capture.
Remarks
Important
The ScreenCapture feature is only supported for mobile devices running Windows Phone 8.1. This API is not supported on Windows 10.
Use this property to set the VideoSource property of the MediaCaptureInitializationSettings object that you use to initialize a MediaCapture object.
Methods
GetForCurrentView() GetForCurrentView() GetForCurrentView() GetForCurrentView()
Gets the ScreenCapture object associated with the app's current view.
public : static ScreenCapture GetForCurrentView()public static ScreenCapture GetForCurrentView()Public Static Function GetForCurrentView() As ScreenCapture// You can use this method in JavaScript.
The ScreenCapture object associated with the app's current view.
Remarks
Important
The ScreenCapture feature is only supported for mobile devices running Windows Phone 8.1. This API is not supported on Windows 10.
Use this method to obtain an instance of the ScreenCapture class.
Events
SourceSuspensionChanged SourceSuspensionChanged SourceSuspensionChanged SourceSuspensionChanged
Raised when the suspension of screen captured audio or video changes.
public : event TypedEventHandler SourceSuspensionChanged<ScreenCapture, SourceSuspensionChangedEventArgs>public event TypedEventHandler SourceSuspensionChanged<ScreenCapture, SourceSuspensionChangedEventArgs>Public Event SourceSuspensionChanged<ScreenCapture, SourceSuspensionChangedEventArgs>// You can use this event in JavaScript.
Remarks
Important
The ScreenCapture feature is only supported for mobile devices running Windows Phone 8.1. This API is not supported on Windows 10.
The capture of audio or video will be suspended when protected content is being played or displayed. You can use IsAudioSuspended or IsVideoSuspended to determine whether audio or video is currently suspended. Handle this event to be notified when the suspension of audio or video changes.