Class ImageTransmitter
- java.lang.Object
-
- org.jivesoftware.smackx.jingleold.mediaimpl.sshare.api.ImageTransmitter
-
- All Implemented Interfaces:
java.lang.Runnable
public class ImageTransmitter extends java.lang.Object implements java.lang.Runnable
UDP Image Receiver. It uses PNG Tiles into UDP packets.
-
-
Constructor Summary
Constructors Constructor Description ImageTransmitter(java.net.DatagramSocket socket, java.net.InetAddress remoteHost, int remotePort, java.awt.Rectangle area)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImageEncoder
getEncoder()
Get the encoder used to encode Images Tiles.void
run()
void
setEncoder(ImageEncoder encoder)
Set the encoder used to encode Image Tiles.void
setTransmit(boolean transmit)
Set Transmit Enabled/Disabled.void
start()
void
stop()
Stops Transmitter.
-
-
-
Field Detail
-
tileWidth
public static final int tileWidth
- See Also:
- Constant Field Values
-
KEYFRAME
public static final int KEYFRAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ImageTransmitter
public ImageTransmitter(java.net.DatagramSocket socket, java.net.InetAddress remoteHost, int remotePort, java.awt.Rectangle area)
-
-
Method Detail
-
start
public void start()
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
-
setTransmit
public void setTransmit(boolean transmit)
Set Transmit Enabled/Disabled.- Parameters:
transmit
- boolean Enabled/Disabled
-
getEncoder
public ImageEncoder getEncoder()
Get the encoder used to encode Images Tiles.- Returns:
- encoder TODO javadoc me please
-
setEncoder
public void setEncoder(ImageEncoder encoder)
Set the encoder used to encode Image Tiles.- Parameters:
encoder
- encoder
-
stop
public void stop()
Stops Transmitter.
-
-