public class PeerConnectionFactory
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
PeerConnectionFactory.Builder |
static class |
PeerConnectionFactory.InitializationOptions |
static class |
PeerConnectionFactory.Options |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TRIAL_ENABLED |
static java.lang.String |
VIDEO_FRAME_EMIT_TRIAL
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static PeerConnectionFactory.Builder |
builder() |
AudioSource |
createAudioSource(MediaConstraints constraints) |
AudioTrack |
createAudioTrack(java.lang.String id,
AudioSource source) |
MediaStream |
createLocalMediaStream(java.lang.String label) |
PeerConnection |
createPeerConnection(java.util.List<PeerConnection.IceServer> iceServers,
MediaConstraints constraints,
PeerConnection.Observer observer)
Deprecated.
|
PeerConnection |
createPeerConnection(java.util.List<PeerConnection.IceServer> iceServers,
PeerConnection.Observer observer) |
PeerConnection |
createPeerConnection(PeerConnection.RTCConfiguration rtcConfig,
MediaConstraints constraints,
PeerConnection.Observer observer)
Deprecated.
|
PeerConnection |
createPeerConnection(PeerConnection.RTCConfiguration rtcConfig,
PeerConnection.Observer observer) |
PeerConnection |
createPeerConnection(PeerConnection.RTCConfiguration rtcConfig,
PeerConnectionDependencies dependencies) |
VideoSource |
createVideoSource(boolean isScreencast)
Same as above with alignTimestamps set to true.
|
VideoSource |
createVideoSource(boolean isScreencast,
boolean alignTimestamps)
Create video source with given parameters.
|
VideoTrack |
createVideoTrack(java.lang.String id,
VideoSource source) |
void |
dispose() |
static java.lang.String |
fieldTrialsFindFullName(java.lang.String name) |
long |
getNativeOwnedFactoryAndThreads()
Returns a pointer to the native OwnedFactoryAndThreads object
|
long |
getNativePeerConnectionFactory()
Returns a pointer to the native webrtc::PeerConnectionFactoryInterface.
|
static void |
initialize(PeerConnectionFactory.InitializationOptions options)
Loads and initializes WebRTC.
|
static void |
initializeFieldTrials(java.lang.String fieldTrialsInitString)
Deprecated.
|
void |
printInternalStackTraces(boolean printNativeStackTraces)
Print the Java stack traces for the critical threads used by PeerConnectionFactory, namely;
signaling thread, worker thread, and network thread.
|
static void |
printStackTraces()
Deprecated.
|
static void |
shutdownInternalTracer() |
boolean |
startAecDump(int file_descriptor,
int filesize_limit_bytes) |
static boolean |
startInternalTracingCapture(java.lang.String tracingFilename) |
void |
stopAecDump() |
static void |
stopInternalTracingCapture() |
public static final java.lang.String TRIAL_ENABLED
@Deprecated public static final java.lang.String VIDEO_FRAME_EMIT_TRIAL
public static PeerConnectionFactory.Builder builder()
public static void initialize(PeerConnectionFactory.InitializationOptions options)
public static void shutdownInternalTracer()
@Deprecated public static void initializeFieldTrials(java.lang.String fieldTrialsInitString)
public static java.lang.String fieldTrialsFindFullName(java.lang.String name)
public static boolean startInternalTracingCapture(java.lang.String tracingFilename)
public static void stopInternalTracingCapture()
@Nullable @Deprecated public PeerConnection createPeerConnection(PeerConnection.RTCConfiguration rtcConfig, MediaConstraints constraints, PeerConnection.Observer observer)
@Nullable @Deprecated public PeerConnection createPeerConnection(java.util.List<PeerConnection.IceServer> iceServers, MediaConstraints constraints, PeerConnection.Observer observer)
@Nullable public PeerConnection createPeerConnection(java.util.List<PeerConnection.IceServer> iceServers, PeerConnection.Observer observer)
@Nullable public PeerConnection createPeerConnection(PeerConnection.RTCConfiguration rtcConfig, PeerConnection.Observer observer)
@Nullable public PeerConnection createPeerConnection(PeerConnection.RTCConfiguration rtcConfig, PeerConnectionDependencies dependencies)
public MediaStream createLocalMediaStream(java.lang.String label)
public VideoSource createVideoSource(boolean isScreencast, boolean alignTimestamps)
public VideoSource createVideoSource(boolean isScreencast)
createVideoSource(boolean, boolean)
public VideoTrack createVideoTrack(java.lang.String id, VideoSource source)
public AudioSource createAudioSource(MediaConstraints constraints)
public AudioTrack createAudioTrack(java.lang.String id, AudioSource source)
public boolean startAecDump(int file_descriptor, int filesize_limit_bytes)
public void stopAecDump()
public void dispose()
public long getNativePeerConnectionFactory()
public long getNativeOwnedFactoryAndThreads()
@Deprecated public static void printStackTraces()
public void printInternalStackTraces(boolean printNativeStackTraces)
6.0.0