예제 #1
0
        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();
        }
예제 #2
0
        private void cmbSplitType_SelectedIndexChanged(object sender, EventArgs e)
        {
            string selectItem = (string)this.cmbSplitType.SelectedItem;

            selectItem = selectItem.Trim();

            if (dictSplit.ContainsKey(selectItem))
            {
                emSplitType = dictSplit[selectItem];
            }
        }
예제 #3
0
 public static extern int CLIENT_StartRealPlay(int lLoginID, int nChannelID, IntPtr hWnd, REALPLAY_TYPE rType, fRealDataCallBackEx cbRealData, fRealPlayDisConnect cbDisconnect, int dwuser, int waittime = 1000);
예제 #4
0
 public static extern int CLIENT_RealPlayEx(int lLoginID, int nChannelID, IntPtr hWnd, REALPLAY_TYPE dhRealPlay);
예제 #5
0
파일: NetSDK.cs 프로젝트: golfpunx/CIT
 private static extern int CLIENT_RealPlayEx(int lLoginID, int nChannelID, IntPtr hWnd, REALPLAY_TYPE rType);
예제 #6
0
파일: NetSDK.cs 프로젝트: golfpunx/CIT
 /// <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;
 }