public class VCStreamer
extends SourceComponent
1.x
series (preferably a "complete" installation).
targets
"
parameter should contain a semi-column-separated list of hostname:port
elements.
Each hostname
should be either an IP address or a machine defined
in the configuration for CNService
.
As it is currently implemented, streaming does not use just one port but six per
"target": not only port
but also port + {1, 2, 3, 5, 7}
should be available on the target machine.
Each target machine should in turn run a
VCDisplay
component with the
basePort
parameter set to the chosen port.
FaceReader
), this
component is capable of simulating an IP camera.
Two parameters must be used if this feature is needed: ipcamerafrom
,
which must be an available local port but otherwise bears no impact, and
ipcamerato
, which defines the port on which the camera will be
available.
For example, if ipcamerato
is set to 4001, the camera can be seen
in an MJPEG-compatible client (such as VLC, QuickTime Player, Firefox, Safari or
Chrome) at http://localhost:4001/
.
saveTo
parameter to the desired location. The video stream will
be encoded using H.264 and the audio stream using
Opus.
OS Compatibility: Windows and LinuxConstructor and Description |
---|
VCStreamer(java.lang.String outboundPort,
ComponentConfig config) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes connection and stops streaming user's webcam video and audio on http port.
|
void |
definePublishedData()
Checking type of output data.
|
static java.lang.Process |
startWithExecutableExtension(java.lang.ProcessBuilder pb)
Starts a process for running gstreamer with predefined configuration.
|
public VCStreamer(java.lang.String outboundPort, ComponentConfig config)
public void definePublishedData()
public void close()
public static java.lang.Process startWithExecutableExtension(java.lang.ProcessBuilder pb) throws java.io.IOException
pb
- Process Builder to run gstreamerjava.io.IOException
- IO exception