Package org.webrtc
Class MediaSource
java.lang.Object
org.webrtc.MediaSource
- Direct Known Subclasses:
AudioSource,VideoSource
Java wrapper for a C++ MediaSourceInterface.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumTracks MediaSourceInterface.SourceState -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidvoiddispose()protected longReturns a pointer to webrtc::MediaSourceInterface.private static MediaSource.StatenativeGetState(long pointer) (package private) voidrunWithReference(Runnable runnable) Runs code inrunnableholding a reference to the media source.state()
-
Field Details
-
refCountDelegate
-
nativeSource
private long nativeSource
-
-
Constructor Details
-
MediaSource
public MediaSource(long nativeSource)
-
-
Method Details
-
state
-
dispose
public void dispose() -
getNativeMediaSource
protected long getNativeMediaSource()Returns a pointer to webrtc::MediaSourceInterface. -
runWithReference
Runs code inrunnableholding a reference to the media source. If the object has already been released, does nothing. -
checkMediaSourceExists
private void checkMediaSourceExists() -
nativeGetState
-