mirror of
https://github.com/aaru-dps/RedBookPlayer.git
synced 2025-12-16 19:24:41 +00:00
Add Player passthru for new items
This commit is contained in:
@@ -31,6 +31,17 @@ namespace RedBookPlayer.GUI.ViewModels
|
|||||||
|
|
||||||
#region Player Passthrough
|
#region Player Passthrough
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Currently selected disc
|
||||||
|
/// </summary>
|
||||||
|
public int CurrentDisc
|
||||||
|
{
|
||||||
|
get => _currentDisc;
|
||||||
|
private set => this.RaiseAndSetIfChanged(ref _currentDisc, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
private int _currentDisc;
|
||||||
|
|
||||||
#region OpticalDisc Passthrough
|
#region OpticalDisc Passthrough
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -417,6 +428,16 @@ namespace RedBookPlayer.GUI.ViewModels
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public void ExecuteEject() => _player?.Eject();
|
public void ExecuteEject() => _player?.Eject();
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Move to the next disc
|
||||||
|
/// </summary>
|
||||||
|
public void ExecuteNextDisc() => _player?.NextDisc();
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Move to the previous disc
|
||||||
|
/// </summary>
|
||||||
|
public void ExecutePreviousDisc() => _player?.PreviousDisc();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Move to the next playable track
|
/// Move to the next playable track
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -800,6 +821,7 @@ namespace RedBookPlayer.GUI.ViewModels
|
|||||||
|
|
||||||
Initialized = _player.Initialized;
|
Initialized = _player.Initialized;
|
||||||
|
|
||||||
|
CurrentDisc = _player.CurrentDisc;
|
||||||
CurrentTrackNumber = _player.CurrentTrackNumber;
|
CurrentTrackNumber = _player.CurrentTrackNumber;
|
||||||
CurrentTrackIndex = _player.CurrentTrackIndex;
|
CurrentTrackIndex = _player.CurrentTrackIndex;
|
||||||
CurrentTrackSession = _player.CurrentTrackSession;
|
CurrentTrackSession = _player.CurrentTrackSession;
|
||||||
|
|||||||
Reference in New Issue
Block a user