public void AdminCommands(AdminCommand control, MetaData metaData)
        {
            try
            {
                switch (control)
                {
                case AdminCommand.Play:
                {
                    callback.PlayVideo(metaData, control);
                    break;
                }

                case AdminCommand.Listen:
                case AdminCommand.StopListen:
                case AdminCommand.Launch:
                case AdminCommand.Pause:
                case AdminCommand.Hop:
                case AdminCommand.Stop:
                default:
                {
                    callback.AdminCommand(control);
                    break;
                }
                }
            }
            catch (Exception)
            {
            }
        }
Beispiel #2
0
        public void LaunchToggle(LaunchControl control, MetaData metaData)
        {
            switch (control)
            {
            case LaunchControl.Play:
            {
                callback.PlayVideo(metaData, control);
                break;
            }

            case LaunchControl.Stop:
            case LaunchControl.Pause:
            case LaunchControl.Hop:
            case LaunchControl.Start:
            default:
            {
                callback.MyMethod(control, metaData);
                break;
            }
            }
        }