ScreenCapture.SourceSuspensionChanged 事件

定义

当屏幕捕获的音频或视频的挂起发生更改时引发。

// Register
event_token SourceSuspensionChanged(TypedEventHandler<ScreenCapture, SourceSuspensionChangedEventArgs const&> const& handler) const;

// Revoke with event_token
void SourceSuspensionChanged(event_token const* cookie) const;

// Revoke with event_revoker
ScreenCapture::SourceSuspensionChanged_revoker SourceSuspensionChanged(auto_revoke_t, TypedEventHandler<ScreenCapture, SourceSuspensionChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<ScreenCapture,SourceSuspensionChangedEventArgs> SourceSuspensionChanged;
function onSourceSuspensionChanged(eventArgs) { /* Your code */ }
screenCapture.addEventListener("sourcesuspensionchanged", onSourceSuspensionChanged);
screenCapture.removeEventListener("sourcesuspensionchanged", onSourceSuspensionChanged);
- or -
screenCapture.onsourcesuspensionchanged = onSourceSuspensionChanged;
Public Custom Event SourceSuspensionChanged As TypedEventHandler(Of ScreenCapture, SourceSuspensionChangedEventArgs) 

事件类型

注解

重要

仅运行 Windows Phone 8.1 的移动设备支持 ScreenCapture 功能。 Windows 10 不支持此 API。

播放或显示受保护的内容时,将暂停对音频或视频的捕获。 可以使用 IsAudioSuspendedIsVideoSuspended 来确定音频或视频当前是否已挂起。 处理此事件,以在音频或视频暂停更改时收到通知。

适用于