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 cmbSplitType_SelectedIndexChanged(object sender, EventArgs e) { string selectItem = (string)this.cmbSplitType.SelectedItem; selectItem = selectItem.Trim(); if (dictSplit.ContainsKey(selectItem)) { emSplitType = dictSplit[selectItem]; } }
public static extern int CLIENT_StartRealPlay(int lLoginID, int nChannelID, IntPtr hWnd, REALPLAY_TYPE rType, fRealDataCallBackEx cbRealData, fRealPlayDisConnect cbDisconnect, int dwuser, int waittime = 1000);
public static extern int CLIENT_RealPlayEx(int lLoginID, int nChannelID, IntPtr hWnd, REALPLAY_TYPE dhRealPlay);
private static extern int CLIENT_RealPlayEx(int lLoginID, int nChannelID, IntPtr hWnd, REALPLAY_TYPE rType);
/// <summary> /// Start the real-time monitoring(enhanced edition) /// </summary> /// <param name="lLoginID">Equipment user loginID:<seealso cref="CLIENT_Login"/>return value</param> /// <param name="nChannelID">channelID</param> /// <param name="realPlayType">Real-time broadcast type</param> /// <param name="hWnd">Show the container window handle</param> /// <returns>Failure to return0,Successful return to the real-time monitoringID(real-time monitoring handle)</returns> public static int NETRealPlayEx(int lLoginID, int nChannelID, REALPLAY_TYPE realPlayType,IntPtr hWnd) { int returnValue = CLIENT_RealPlayEx(lLoginID, nChannelID, hWnd,realPlayType); NETThrowLastError(returnValue); return returnValue; }