Exemplo n.º 1
0
        public static PlayerDisplayMode ToNative(this Aspect aspect)
        {
            PlayerDisplayMode ret = PlayerDisplayMode.LetterBox;

            switch (aspect)
            {
            case Aspect.AspectFill:
                ret = PlayerDisplayMode.CroppedFull;
                break;

            case Aspect.AspectFit:
                ret = PlayerDisplayMode.LetterBox;
                break;

            case Aspect.Fill:
                ret = PlayerDisplayMode.FullScreen;
                break;
            }
            return(ret);
        }
        public static PlayerDisplayMode ToMultimeida(this DisplayAspectMode mode)
        {
            PlayerDisplayMode ret = PlayerDisplayMode.LetterBox;

            switch (mode)
            {
            case DisplayAspectMode.AspectFill:
                ret = PlayerDisplayMode.CroppedFull;
                break;

            case DisplayAspectMode.AspectFit:
                ret = PlayerDisplayMode.LetterBox;
                break;

            case DisplayAspectMode.Fill:
                ret = PlayerDisplayMode.FullScreen;
                break;

            case DisplayAspectMode.OrignalSize:
                ret = PlayerDisplayMode.OriginalOrFull;
                break;
            }
            return(ret);
        }
Exemplo n.º 3
0
 internal static extern PlayerErrorCode GetMode(IntPtr player, out PlayerDisplayMode mode);