internal static MediaControlPlaybackCommand ToPublic(this MediaControllerNativePlaybackAction nativeAction) { switch (nativeAction) { case MediaControllerNativePlaybackAction.Play: return(MediaControlPlaybackCommand.Play); case MediaControllerNativePlaybackAction.Pause: return(MediaControlPlaybackCommand.Pause); case MediaControllerNativePlaybackAction.Stop: return(MediaControlPlaybackCommand.Stop); case MediaControllerNativePlaybackAction.Next: return(MediaControlPlaybackCommand.Next); case MediaControllerNativePlaybackAction.Prev: return(MediaControlPlaybackCommand.Previous); case MediaControllerNativePlaybackAction.FastForward: return(MediaControlPlaybackCommand.FastForward); case MediaControllerNativePlaybackAction.Rewind: return(MediaControlPlaybackCommand.Rewind); case MediaControllerNativePlaybackAction.Toggle: return(MediaControlPlaybackCommand.Toggle); } Debug.Fail($"Not supported code for playback command{nativeAction}."); return(MediaControlPlaybackCommand.Play); }
internal static extern MediaControllerError IsCapabilitySupported(IntPtr capaHandle, MediaControllerNativePlaybackAction action, out MediaControlCapabilitySupport support);
internal static extern MediaControllerError SendPlaylistCommand(MediaControllerClientHandle handle, string serverName, string playlistName, string index, MediaControllerNativePlaybackAction mode, ulong position, out string requestId);
internal static extern MediaControllerError SendPlaybackActionCommandWithoutReqId(MediaControllerClientHandle handle, string serverName, MediaControllerNativePlaybackAction action, string requestId = default(string));
internal static extern MediaControllerError SendPlaybackActionCommand(MediaControllerClientHandle handle, string serverName, MediaControllerNativePlaybackAction action, out string requestId);
internal static extern MediaControllerError SendPlaybackStateCommand(MediaControllerClientHandle handle, string serverName, MediaControllerNativePlaybackAction command);
internal static extern MediaControllerError SetPlaybackCapability(IntPtr serverHandle, MediaControllerNativePlaybackAction action, MediaControlCapabilitySupport support);