Package | Description |
---|---|
org.webrtc |
Modifier and Type | Method and Description |
---|---|
void |
Metrics.HistogramInfo.addSample(int value,
int numEvents) |
default VideoDecoder |
VideoDecoderFactory.createDecoder(VideoCodecInfo info)
Creates a decoder for the given video codec.
|
VideoEncoder |
VideoEncoderFactory.createEncoder(VideoCodecInfo info)
Creates an encoder for the given video codec.
|
default long |
VideoDecoder.createNativeVideoDecoder()
The decoder implementation backing this interface is either 1) a Java
decoder (e.g., an Android platform decoder), or alternatively 2) a native
decoder (e.g., a software decoder or a C++ decoder adapter).
|
default long |
VideoEncoder.createNativeVideoEncoder()
The encoder implementation backing this interface is either 1) a Java
encoder (e.g., an Android platform encoder), or alternatively 2) a native
encoder (e.g., a software encoder or a C++ encoder adapter).
|
VideoFrame.Buffer |
VideoFrame.Buffer.cropAndScale(int cropX,
int cropY,
int cropWidth,
int cropHeight,
int scaleWidth,
int scaleHeight)
Crops a region defined by |cropx|, |cropY|, |cropWidth| and |cropHeight|.
|
VideoCodecStatus |
VideoDecoder.decode(EncodedImage frame,
VideoDecoder.DecodeInfo info)
Request the decoder to decode a frame.
|
void |
RtpReceiver.dispose() |
void |
MediaStream.dispose() |
void |
RtpTransceiver.dispose() |
VideoCodecStatus |
VideoEncoder.encode(VideoFrame frame,
VideoEncoder.EncodeInfo info)
Requests the encoder to encode a frame.
|
static SessionDescription.Type |
SessionDescription.Type.fromCanonicalForm(java.lang.String canonical) |
VideoFrame.Buffer |
VideoFrame.getBuffer() |
java.lang.String |
RtpParameters.Rtcp.getCname() |
java.nio.ByteBuffer |
VideoFrame.I420Buffer.getDataU()
Returns a direct ByteBuffer containing U-plane data.
|
java.nio.ByteBuffer |
VideoFrame.I420Buffer.getDataV()
Returns a direct ByteBuffer containing V-plane data.
|
java.nio.ByteBuffer |
VideoFrame.I420Buffer.getDataY()
Returns a direct ByteBuffer containing Y-plane data.
|
boolean |
CryptoOptions.Srtp.getEnableAes128Sha1_32CryptoCipher() |
boolean |
CryptoOptions.Srtp.getEnableEncryptedRtpHeaderExtensions() |
boolean |
CryptoOptions.Srtp.getEnableGcmCryptoSuites() |
boolean |
RtpParameters.HeaderExtension.getEncrypted() |
java.util.List<RtpParameters.HeaderExtension> |
RtpParameters.getHeaderExtensions() |
int |
VideoFrame.Buffer.getHeight() |
int |
RtpParameters.HeaderExtension.getId() |
java.lang.String |
VideoDecoder.getImplementationName()
Should return a descriptive name for the implementation.
|
java.lang.String |
VideoEncoder.getImplementationName()
Should return a descriptive name for the implementation.
|
static NetworkMonitor |
NetworkMonitor.getInstance()
Returns the singleton instance.
|
java.lang.String |
MediaConstraints.KeyValuePair.getKey() |
int |
PeerConnection.IntervalRange.getMax() |
int |
PeerConnection.IntervalRange.getMin() |
int |
VideoCodecStatus.getNumber() |
boolean |
VideoDecoder.getPrefersLateDecoding()
The decoder should return true if it prefers late decoding.
|
boolean |
RtpParameters.Rtcp.getReducedSize() |
boolean |
CryptoOptions.SFrame.getRequireFrameEncryption() |
int |
VideoFrame.getRotation()
Rotation of the frame in degrees.
|
RtpParameters.Rtcp |
RtpParameters.getRtcp() |
VideoEncoder.ScalingSettings |
VideoEncoder.getScalingSettings()
Any encoder that wants to use WebRTC provided quality scaler must implement this method.
|
CryptoOptions.SFrame |
CryptoOptions.getSFrame() |
CryptoOptions.Srtp |
CryptoOptions.getSrtp() |
int |
VideoFrame.I420Buffer.getStrideU() |
int |
VideoFrame.I420Buffer.getStrideV() |
int |
VideoFrame.I420Buffer.getStrideY() |
default VideoCodecInfo[] |
VideoDecoderFactory.getSupportedCodecs()
Enumerates the list of supported video codecs.
|
VideoCodecInfo[] |
VideoEncoderFactory.getSupportedCodecs()
Enumerates the list of supported video codecs.
|
long |
VideoFrame.getTimestampNs()
Timestamp of the frame in nano seconds.
|
java.lang.String |
RtpParameters.HeaderExtension.getUri() |
java.lang.String |
MediaConstraints.KeyValuePair.getValue() |
int |
VideoFrame.Buffer.getWidth()
Resolution of the buffer in pixels.
|
VideoCodecStatus |
VideoDecoder.initDecode(VideoDecoder.Settings settings,
VideoDecoder.Callback decodeCallback)
Initializes the decoding process with specified settings.
|
VideoCodecStatus |
VideoEncoder.initEncode(VideoEncoder.Settings settings,
VideoEncoder.Callback encodeCallback)
Initializes the encoding process.
|
default boolean |
VideoEncoder.isHardwareEncoder()
Returns true if the encoder is backed by hardware.
|
void |
PeerConnection.Observer.onAddStream(MediaStream stream)
Triggered when media is received on a new stream from remote peer.
|
void |
PeerConnection.Observer.onAddTrack(RtpReceiver receiver,
MediaStream[] mediaStreams)
Triggered when a new track is signaled by the remote peer, as a result of
setRemoteDescription.
|
void |
DataChannel.Observer.onBufferedAmountChange(long previousAmount)
The data channel's bufferedAmount has changed.
|
void |
StatsObserver.onComplete(StatsReport[] reports)
Called when the reports are ready.
|
default void |
PeerConnection.Observer.onConnectionChange(PeerConnection.PeerConnectionState newState)
Triggered when the PeerConnectionState changes.
|
void |
SdpObserver.onCreateFailure(java.lang.String error)
Called on error of Create{Offer,Answer}().
|
void |
SdpObserver.onCreateSuccess(SessionDescription sdp)
Called on success of Create{Offer,Answer}().
|
void |
PeerConnection.Observer.onDataChannel(DataChannel dataChannel)
Triggered when a remote peer opens a DataChannel.
|
void |
RtpReceiver.Observer.onFirstPacketReceived(MediaStreamTrack.MediaType media_type) |
void |
VideoSink.onFrame(VideoFrame frame)
Implementations should call frame.retain() if they need to hold a reference to the frame after
this function returns.
|
void |
PeerConnection.Observer.onIceCandidate(IceCandidate candidate)
Triggered when a new ICE candidate has been found.
|
void |
PeerConnection.Observer.onIceCandidatesRemoved(IceCandidate[] candidates)
Triggered when some ICE candidates have been removed.
|
void |
PeerConnection.Observer.onIceConnectionChange(PeerConnection.IceConnectionState newState)
Triggered when the IceConnectionState changes.
|
void |
PeerConnection.Observer.onIceConnectionReceivingChange(boolean receiving)
Triggered when the ICE connection receiving status changes.
|
void |
PeerConnection.Observer.onIceGatheringChange(PeerConnection.IceGatheringState newState)
Triggered when the IceGatheringState changes.
|
void |
DataChannel.Observer.onMessage(DataChannel.Buffer buffer)
A data buffer was successfully received.
|
void |
PeerConnection.Observer.onRemoveStream(MediaStream stream)
Triggered when a remote peer close a stream.
|
void |
PeerConnection.Observer.onRenegotiationNeeded()
Triggered when renegotiation is necessary.
|
void |
SdpObserver.onSetFailure(java.lang.String error)
Called on error of Set{Local,Remote}Description().
|
void |
SdpObserver.onSetSuccess()
Called on success of Set{Local,Remote}Description().
|
void |
PeerConnection.Observer.onSignalingChange(PeerConnection.SignalingState newState)
Triggered when the SignalingState changes.
|
void |
DataChannel.Observer.onStateChange()
The data channel state has changed.
|
void |
RTCStatsCollectorCallback.onStatsDelivered(RTCStatsReport report)
Called when the stats report is ready.
|
default void |
PeerConnection.Observer.onTrack(RtpTransceiver transceiver)
Triggered when the signaling from SetRemoteDescription indicates that a transceiver
will be receiving media from a remote endpoint.
|
void |
VideoFrame.release() |
void |
VideoFrame.Buffer.release() |
VideoCodecStatus |
VideoDecoder.release()
Called when the decoder is no longer needed.
|
VideoCodecStatus |
VideoEncoder.release()
Releases the encoder.
|
void |
VideoFrame.Buffer.retain() |
VideoCodecStatus |
VideoEncoder.setRateAllocation(VideoEncoder.BitrateAllocation allocation,
int framerate)
Sets the bitrate allocation and the target framerate for the encoder.
|
VideoFrame.I420Buffer |
VideoFrame.Buffer.toI420()
Returns a memory-backed frame in I420 format.
|
boolean |
SSLCertificateVerifier.verify(byte[] certificate)
Implementations of verify allow applications to provide custom logic for
verifying certificates.
|
Constructor and Description |
---|
BitrateAllocation(int[][] bitratesBbs)
Initializes the allocation with a two dimensional array of bitrates.
|
Buffer(java.nio.ByteBuffer data,
boolean binary) |
DataChannel(long nativeDataChannel) |
EncodeInfo(EncodedImage.FrameType[] frameTypes) |
HistogramInfo(int min,
int max,
int bucketCount) |
MediaStream(long nativeStream) |
NativeCapturerObserver(long nativeSource) |
RtcCertificatePem(java.lang.String privateKey,
java.lang.String certificate)
Instantiate an RtcCertificatePem object from stored strings.
|
RtpReceiver(long nativeRtpReceiver) |
RtpSender(long nativeRtpSender) |
SessionDescription(SessionDescription.Type type,
java.lang.String description) |
Settings(int numberOfCores,
int width,
int height) |
Settings(int numberOfCores,
int width,
int height,
int startBitrate,
int maxFramerate,
int numberOfSimulcastStreams,
boolean automaticResizeOn) |
StatsReport(java.lang.String id,
java.lang.String type,
double timestamp,
StatsReport.Value[] values) |
Value(java.lang.String name,
java.lang.String value) |
VideoCodecInfo(java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> params) |
VideoFrame(VideoFrame.Buffer buffer,
int rotation,
long timestampNs)
Constructs a new VideoFrame backed by the given
buffer . |