-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
revert button detections to older, non-focused session behavior
- Loading branch information
1 parent
0f6254d
commit cf74ec8
Showing
8 changed files
with
298 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
using System; | ||
using Windows.Media.Control; | ||
using Windows.Storage.Streams; | ||
using WindowsMediaController; | ||
|
||
namespace Artemis.MediaInfo.MediaWatch; | ||
|
||
public class MediaAddedEventArgs : EventArgs | ||
{ | ||
public MediaManager.MediaSession MediaSession { get; } | ||
|
||
public MediaAddedEventArgs(MediaManager.MediaSession mediaSession) | ||
{ | ||
MediaSession = mediaSession; | ||
} | ||
} | ||
|
||
public class ArtStateChangedEventArgs : EventArgs | ||
{ | ||
public MediaManager.MediaSession MediaSession { get; } | ||
public IRandomAccessStreamReference? Thumbnail { get; } | ||
|
||
public ArtStateChangedEventArgs(MediaManager.MediaSession mediaSession, IRandomAccessStreamReference? thumbnail) | ||
{ | ||
MediaSession = mediaSession; | ||
Thumbnail = thumbnail; | ||
} | ||
} | ||
|
||
public class FocusedMediaChangedEventArgs : EventArgs | ||
{ | ||
public MediaManager.MediaSession? MediaSession { get; } | ||
public GlobalSystemMediaTransportControlsSessionPlaybackInfo? PlaybackInfo { get; } | ||
|
||
public FocusedMediaChangedEventArgs(MediaManager.MediaSession? mediaSession, | ||
GlobalSystemMediaTransportControlsSessionPlaybackInfo? playbackInfo) | ||
{ | ||
MediaSession = mediaSession; | ||
PlaybackInfo = playbackInfo; | ||
} | ||
} |
Oops, something went wrong.