private MPRemoteCommandHandlerStatus ChangePlaybackPositionCommandHandler(MPRemoteCommandEvent e) { var playbackPositionEvent = (MPChangePlaybackPositionCommandEvent)e; ChangePosition((int)playbackPositionEvent.PositionTime); return(MPRemoteCommandHandlerStatus.Success); }
MPRemoteCommandHandlerStatus handleCommandCenterPlayCommand(MPRemoteCommandEvent commandEvent) { if (Player?.Rate == 0) { Player.Play(); updateCommandCenterNowPlayingInfo(); return(MPRemoteCommandHandlerStatus.Success); } return(MPRemoteCommandHandlerStatus.CommandFailed); }
private MPRemoteCommandHandlerStatus TogglePlayPauseCommand(MPRemoteCommandEvent arg) { if (IsPlaying) { Stop(); } else { Play(); } return(MPRemoteCommandHandlerStatus.Success); }
public MPRemoteCommandHandlerStatus ToggleCommand(MPRemoteCommandEvent commandEvent) { if (_player != null) { if (_player.Rate == 0) { PlayMedia(); } else { PauseMedia(); } } return(MPRemoteCommandHandlerStatus.Success); }
public MPRemoteCommandHandlerStatus PrevCommand(MPRemoteCommandEvent commandEvent) { PreviousMedia(); return(MPRemoteCommandHandlerStatus.Success); }
MPRemoteCommandHandlerStatus handleCommandCenterStopCommand(MPRemoteCommandEvent commandEvent) { return(MPRemoteCommandHandlerStatus.CommandFailed); }
MPRemoteCommandHandlerStatus handleCommandCenterSeekBackwardCommand(MPRemoteCommandEvent commandEvent) { return(MPRemoteCommandHandlerStatus.CommandFailed); }
MPRemoteCommandHandlerStatus handleCommandCenterPreviousTrackCommand(MPRemoteCommandEvent commandEvent) { return(MPRemoteCommandHandlerStatus.CommandFailed); }
private MPRemoteCommandHandlerStatus PlayCommandHandler(MPRemoteCommandEvent e) { Play(); return(MPRemoteCommandHandlerStatus.Success); }
public MPRemoteCommandHandlerStatus ChangeRepeatModeCommand(MPRemoteCommandEvent commandEvent) { RepeatMedia(!IsMediaRepeating()); return(MPRemoteCommandHandlerStatus.Success); }
private MPRemoteCommandHandlerStatus _Pause(MPRemoteCommandEvent arg) { Stop(); return(MPRemoteCommandHandlerStatus.Success); }
public MPRemoteCommandHandlerStatus PlayCommand(MPRemoteCommandEvent commandEvent) { Play(); return(MPRemoteCommandHandlerStatus.Success); }
/// <summary> /// Command for the pause button on lockscreen and control center /// </summary> /// <param name="commandEvent"></param> /// <returns></returns> private MPRemoteCommandHandlerStatus PauseCommand(MPRemoteCommandEvent commandEvent) { Pause(); return(MPRemoteCommandHandlerStatus.Success); }
private MPRemoteCommandHandlerStatus RewindCommandHandler(MPRemoteCommandEvent e) { Rewind(); return(MPRemoteCommandHandlerStatus.Success); }
private MPRemoteCommandHandlerStatus FastForwardCommandHandler(MPRemoteCommandEvent e) { FastFoward(); return(MPRemoteCommandHandlerStatus.Success); }
public MPRemoteCommandHandlerStatus NextCommand(MPRemoteCommandEvent commandEvent) { NextMedia(); return(MPRemoteCommandHandlerStatus.Success); }
public MPRemoteCommandHandlerStatus PauseCommand(MPRemoteCommandEvent commandEvent) { PauseMedia(); return(MPRemoteCommandHandlerStatus.Success); }
private MPRemoteCommandHandlerStatus _Play(MPRemoteCommandEvent arg) { Play(); return(MPRemoteCommandHandlerStatus.Success); }
MPRemoteCommandHandlerStatus handleCommandCenterChangePlaybackPositionCommand(MPRemoteCommandEvent commandEvent) { return(MPRemoteCommandHandlerStatus.CommandFailed); }
public MPRemoteCommandHandlerStatus PauseButton(MPRemoteCommandEvent commandEvent) { Console.WriteLine("PauseButton : " + commandEvent.Command.Enabled.ToString()); return(MPRemoteCommandHandlerStatus.Success); }