private void play(int canal) { bool canStop = DHClient.DHStopRealPlay(pRealPlayHandle[this.channel]); picPlayMain.Refresh(); // pRealPlayHandle[canal] = DHClient.DHRealPlay(pLoginID, canal, picPlayMain.Handle); //Seteo de calidad (mainstream) REALPLAY_TYPE emStreamType = REALPLAY_TYPE.DH_RType_RealPlay; if (comboBoxCalidad.SelectedIndex == 0) { emStreamType = REALPLAY_TYPE.DH_RType_RealPlay_0; } else { emStreamType = REALPLAY_TYPE.DH_RType_RealPlay_1; } pRealPlayHandle[canal] = DHClient.DHRealPlayEx(pLoginID, canal, emStreamType, picPlayMain.Handle); this.channel = canal; getAjustesVideo(); }
private void play2(int canal) { PictureBox p = pantallas[canal]; pRealPlayHandle[canal] = DHClient.DHRealPlayEx(pLoginID, canal, REALPLAY_TYPE.DH_RType_RealPlay_1, p.Handle); //pRealPlayHandle[canal] = DHClient.DHRealPlay(pLoginID, canal, p.Handle); /*int xxx = 0; * if (pRealPlayHandle[canal] == 0 && xxx < 5) * { * pRealPlayHandle[canal] = DHClient.DHRealPlayEx(pLoginID, canal, REALPLAY_TYPE.DH_RType_RealPlay_1, p.Handle); * xxx++; * Thread.Sleep(200); * }*/ //pantallas.Add(canal, p); }