We need class, for receiver and sender that are going to be used for video streaming (only imges) in h.264 protocol (maybe another one, if you know better).
On sender side we need a class (Sender) with a constructor in which we pull height and width of sending images, time interval in ms with which we will send next frame and outputstream for [login to view URL] class should have also the putCapture(BufferedImage) method. In this method we send next images from the film and we are obliged to realize it with the frequency like in the constructor.
Receiver class should be initiated similar to the senders' one (width, height, targeted frames and expected time in long between the frames) with one difference - despite of OutputStream it should be given in InputStream constructor to streams receiver. In constructor there should be listener object given that has receiveCapture(BufferedImage capture) method that will ve called always after receiving next frames. In other words, Receiver class reads data from given InputStream and call receivCapture(BufferedImage) when next frame of video streaming will be received.