Esempio n. 1
0
 private void PlayerForm_Load(object sender, System.EventArgs e)
 {
     if (PlayerSdk.EasyPlayer_Init() == 0)
     {
         isInit = true;
     }
     callBack = new PlayerSdk.MediaSourceCallBack(MediaCallback);
     this.DecodeType.SelectedItem = "GDI";
     isTCP            = rtpoverType.CheckState == CheckState.Checked;
     isHardEncode     = HardDecode.CheckState == CheckState.Checked;
     this.RightToLeft = RightToLeft.Inherit;
 }
Esempio n. 2
0
        private void PlayerForm_Load(object sender, System.EventArgs e)
        {
            //获取进程名
            string str = this.GetType().Assembly.Location;

            this.Text = str;
            int LimitDayOut = PlayerSdk.EasyPlayer_Init();

            if (LimitDayOut >= 0)
            {
                isInit = true;
            }
            callBack = new PlayerSdk.MediaSourceCallBack(MediaCallback);
            this.DecodeType.SelectedItem = "GDI";
            isTCP            = rtpoverType.CheckState == CheckState.Checked;
            isHardEncode     = HardDecode.CheckState == CheckState.Checked;
            this.RightToLeft = RightToLeft.Inherit;
        }