コード例 #1
0
        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);
        }
コード例 #2
0
 internal static extern MediaControllerError IsCapabilitySupported(IntPtr capaHandle,
                                                                   MediaControllerNativePlaybackAction action, out MediaControlCapabilitySupport support);
コード例 #3
0
 internal static extern MediaControllerError SendPlaylistCommand(MediaControllerClientHandle handle,
                                                                 string serverName, string playlistName, string index, MediaControllerNativePlaybackAction mode,
                                                                 ulong position, out string requestId);
コード例 #4
0
 internal static extern MediaControllerError SendPlaybackActionCommandWithoutReqId(MediaControllerClientHandle handle,
                                                                                   string serverName, MediaControllerNativePlaybackAction action, string requestId = default(string));
コード例 #5
0
 internal static extern MediaControllerError SendPlaybackActionCommand(MediaControllerClientHandle handle,
                                                                       string serverName, MediaControllerNativePlaybackAction action, out string requestId);
コード例 #6
0
 internal static extern MediaControllerError SendPlaybackStateCommand(MediaControllerClientHandle handle,
                                                                      string serverName, MediaControllerNativePlaybackAction command);
コード例 #7
0
 internal static extern MediaControllerError SetPlaybackCapability(IntPtr serverHandle,
                                                                   MediaControllerNativePlaybackAction action, MediaControlCapabilitySupport support);