public class MediaOption
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static MediaOption |
audioOnly()
Constructs an audio only media option.
|
static MediaOption |
audioVideo(android.util.Pair<android.view.View,android.view.View> videoRenderViews)
Constructs an audio and video media option.
|
static MediaOption |
audioVideo(android.view.View localView,
android.view.View remoteView)
Constructs an audio and video media option.
|
static MediaOption |
audioVideoSharing(android.util.Pair<android.view.View,android.view.View> videoRenderViews,
android.view.View sharingView)
Constructs an audio/video and share media option.
|
android.view.View |
getLocalView() |
android.view.View |
getRemoteView() |
android.view.View |
getSharingView() |
boolean |
hasSharing()
Whether content sharing is enabled.
|
boolean |
hasVideo()
Whether video is enabled.
|
public static MediaOption audioOnly()
public static MediaOption audioVideo(@NonNull android.view.View localView, @NonNull android.view.View remoteView)
localView
- Video view for self.remoteView
- Video view for remotepublic static MediaOption audioVideo(@Nullable android.util.Pair<android.view.View,android.view.View> videoRenderViews)
videoRenderViews
- Local video view and remote video view.public static MediaOption audioVideoSharing(@Nullable android.util.Pair<android.view.View,android.view.View> videoRenderViews, @Nullable android.view.View sharingView)
videoRenderViews
- Local video view and remote video view.sharingView
- share view for remote.public boolean hasVideo()
public boolean hasSharing()
public android.view.View getRemoteView()
public android.view.View getLocalView()
public android.view.View getSharingView()