Exemplo n.º 1
0
        public ThreadWithPort(String ip, int num1, int num2, String str, int num)
        {
            reader      = new BitmapReader();
            bitmap_resp = new BitmapStream();

            num_frac = num;

            audio_reader = new WaveOutReader();
            audio_resp   = new WaveOutStream();

            port_send   = num1;
            port_listen = num2;
            ip_send     = ip;
            conn        = new Connector(ip_send, port_send, port_listen);

            type = str;
        }
Exemplo n.º 2
0
 //需要改三个部件的大小
 public BitmapPlayer(ref PictureBox input, ref WindowsFormsHost form, ref Client client_, ref WpfApplication1.MainWindow wind)
 {
     image_control  = input;
     form_container = form;
     bmpPerStream   = 1;
     window         = wind;
     Console.Out.WriteLine("init...?");
     reader = new BitmapReader();
     Console.Out.WriteLine("init...");
     bitmap_stream = new List <BitmapStream>();
     current_type  = "";
     isPaused      = 0;
     header        = new List <string>();
     isLocal       = true;
     client        = client_;
     //client.run();
 }