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
Modifier and TypeClassDescriptionstatic enum
Tracks MediaSourceInterface.SourceState -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
void
dispose()
protected long
Returns a pointer to webrtc::MediaSourceInterface.private static MediaSource.State
nativeGetState
(long pointer) (package private) void
runWithReference
(Runnable runnable) Runs code inrunnable
holding 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 inrunnable
holding a reference to the media source. If the object has already been released, does nothing. -
checkMediaSourceExists
private void checkMediaSourceExists() -
nativeGetState
-