Ejemplo n.º 1
0
        public TCPliuclient(string ip, int port, int tongdao, IntPtr Handle)
        {
            _tongdao            = tongdao;
            receiveServerEvent += Tcp_receiveServerEvent;;
            start(ip, port);
            DHPlay.PLAY_OpenStream(tongdao, IntPtr.Zero, 0, (UInt32)900 * 1024);
            //播放的部分
            bool b2 = dp.DHPlayControl(PLAY_COMMAND.OpenStream, tongdao, IntPtr.Zero, 0, 900 * 1024);

            dp.DHSetStreamOpenMode(tongdao, PLAY_MODE.STREAME_FILE);
            dp.DHPlayControl(0, tongdao, Handle);
        }