Exemplo n.º 1
0
        private void DecodeType_SelectedIndexChanged(object sender, EventArgs e)
        {
            var text = (sender as ComboBox).Text;

            switch (text.ToUpper())
            {
            case "GDI":
                renderFormat = RENDER_FORMAT.RENDER_FORMAT_RGB24_GDI; break;

            case "RGB565":
                renderFormat = RENDER_FORMAT.RENDER_FORMAT_RGB565; break;

            case "YV12":
                renderFormat = RENDER_FORMAT.RENDER_FORMAT_YV12; break;

            case "YUY2":
                renderFormat = RENDER_FORMAT.RENDER_FORMAT_YUY2; break;

            default:
                break;
            }
        }
 public static extern int EasyPlayer_OpenStream(string url, IntPtr hWnd, RENDER_FORMAT renderFormat, int rtpovertcp, string username, string password, MediaSourceCallBack callback, IntPtr userPtr, bool bHardDecode = true);
Exemplo n.º 3
0
 public static extern int LibEasyPlayerPro_StartPlayStream(IntPtr playHandle, int channelID, IntPtr hWnd, RENDER_FORMAT renderFormat, byte decodeType = 0);