public class SessionBuilder
extends java.lang.Object
getInstance()
to get access to the SessionBuilder.Modifier and Type | Field and Description |
---|---|
static int |
AUDIO_AAC
Can be used with
setAudioEncoder(int) . |
static int |
AUDIO_AMRNB
Can be used with
setAudioEncoder(int) . |
static int |
AUDIO_NONE
Can be used with
setAudioEncoder(int) . |
static java.lang.String |
TAG |
static int |
VIDEO_H263
Can be used with
setVideoEncoder(int) . |
static int |
VIDEO_H264
Can be used with
setVideoEncoder(int) . |
static int |
VIDEO_NONE
Can be used with
setVideoEncoder(int) . |
Modifier and Type | Method and Description |
---|---|
Session |
build()
Creates a new
Session . |
SessionBuilder |
clone()
Returns a new
SessionBuilder with the same configuration. |
int |
getAudioEncoder()
Returns the audio encoder set with
setAudioEncoder(int) . |
AudioQuality |
getAudioQuality()
Returns the AudioQuality set with
setAudioQuality(AudioQuality) . |
int |
getCamera()
Returns the id of the
android.hardware.Camera set with setCamera(int) . |
Context |
getContext()
Returns the context set with
setContext(Context) |
java.lang.String |
getDestination()
Returns the destination ip address set with
setDestination(String) . |
boolean |
getFlashState()
Returns the flash state set with
setFlashEnabled(boolean) . |
static SessionBuilder |
getInstance()
Returns a reference to the
SessionBuilder . |
java.lang.String |
getOrigin()
Returns the origin ip address set with
setOrigin(String) . |
SurfaceView |
getSurfaceView()
Returns the SurfaceView set with
setSurfaceView(SurfaceView) . |
int |
getTimeToLive()
Returns the time to live set with
setTimeToLive(int) . |
int |
getVideoEncoder()
Returns the video encoder set with
setVideoEncoder(int) . |
VideoQuality |
getVideoQuality()
Returns the VideoQuality set with
setVideoQuality(VideoQuality) . |
SessionBuilder |
setAudioEncoder(int encoder)
Sets the audio encoder.
|
SessionBuilder |
setAudioQuality(AudioQuality quality)
Sets the audio quality.
|
SessionBuilder |
setCallback(Session.Callback callback) |
SessionBuilder |
setCamera(int camera) |
SessionBuilder |
setContext(Context context)
Access to the context is needed for the H264Stream class to store some stuff in the SharedPreferences.
|
SessionBuilder |
setDestination(java.lang.String destination)
Sets the destination of the session.
|
SessionBuilder |
setFlashEnabled(boolean enabled) |
SessionBuilder |
setOrigin(java.lang.String origin)
Sets the origin of the session.
|
SessionBuilder |
setPreviewOrientation(int orientation)
Sets the orientation of the preview.
|
SessionBuilder |
setSurfaceView(SurfaceView surfaceView)
Sets the SurfaceView required to preview the video stream.
|
SessionBuilder |
setTimeToLive(int ttl) |
SessionBuilder |
setVideoEncoder(int encoder)
Sets the default video encoder.
|
SessionBuilder |
setVideoQuality(VideoQuality quality)
Sets the video stream quality.
|
public static final java.lang.String TAG
public static final int VIDEO_NONE
setVideoEncoder(int)
.public static final int VIDEO_H264
setVideoEncoder(int)
.public static final int VIDEO_H263
setVideoEncoder(int)
.public static final int AUDIO_NONE
setAudioEncoder(int)
.public static final int AUDIO_AMRNB
setAudioEncoder(int)
.public static final int AUDIO_AAC
setAudioEncoder(int)
.public static final SessionBuilder getInstance()
SessionBuilder
.SessionBuilder
public Session build()
Session
.java.io.IOException
public SessionBuilder setContext(Context context)
public SessionBuilder setDestination(java.lang.String destination)
public SessionBuilder setOrigin(java.lang.String origin)
public SessionBuilder setVideoQuality(VideoQuality quality)
public SessionBuilder setAudioEncoder(int encoder)
public SessionBuilder setAudioQuality(AudioQuality quality)
public SessionBuilder setVideoEncoder(int encoder)
public SessionBuilder setFlashEnabled(boolean enabled)
public SessionBuilder setCamera(int camera)
public SessionBuilder setTimeToLive(int ttl)
public SessionBuilder setSurfaceView(SurfaceView surfaceView)
public SessionBuilder setPreviewOrientation(int orientation)
orientation
- The orientation of the previewpublic SessionBuilder setCallback(Session.Callback callback)
public Context getContext()
setContext(Context)
public java.lang.String getDestination()
setDestination(String)
.public java.lang.String getOrigin()
setOrigin(String)
.public int getAudioEncoder()
setAudioEncoder(int)
.public int getCamera()
android.hardware.Camera
set with setCamera(int)
.public int getVideoEncoder()
setVideoEncoder(int)
.public VideoQuality getVideoQuality()
setVideoQuality(VideoQuality)
.public AudioQuality getAudioQuality()
setAudioQuality(AudioQuality)
.public boolean getFlashState()
setFlashEnabled(boolean)
.public SurfaceView getSurfaceView()
setSurfaceView(SurfaceView)
.public int getTimeToLive()
setTimeToLive(int)
.public SessionBuilder clone()
SessionBuilder
with the same configuration.clone
in class java.lang.Object