共用方式為


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 來判斷音訊或視訊目前是否暫停。 處理此事件,以在暫停音訊或視訊時收到通知。

適用於