Mesibo Video and Voice Calls
Mesibo Voice & Video Call API - MesiboVideoView
MesiboVideoView
is a UI Component available in Android & iOS, that you need to use for displaying a video in One-to-One Video-Calls, Conferencing(Group Video Calls), etc.
For example, in Android, you can have a MesiboVideoView
element like below:
<com.mesibo.calls.api.MesiboVideoView
android:id="@+id/my_video"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
and get the MesiboVideoView
object like below:
MesiboVideoView videoView = findViewById(R.id.participant_stream_view);
In Javascript,
MesiboVideoView
is not available. You can simply use the HTML<video>
player.
MesiboVideoView
extends
Viewopen_in_new in Android and
UIViewopen_in_new in iOS. So, in addition to methods and properties in
Viewopen_in_new or
UIViewopen_in_new, MesiboVideoView
has the following methods:
enableMirror
Enable or disable mirroring, while displaying the video.
For example, in Android,
videoView.enableMirror(true) // enable mirroring
videoView.enableMirror(false) // disable mirroring
scaleToFill
Enable or disable scale to fill. If set, the video will be scaled to fill the available space.
For example, in Android,
videoView.scaleToFill(true) // scale video to fill
videoView.scaleToFill(false) // don't scale video to fill
stop
Stop displaying the video.
It does not take any parameters.
For example, in Android,
videoView.stop();
enableAutoResize
Enable or disable auto resize of video.
For example, in Android
videoView.enableAutoResize(true); // enable auto-resize
videoView.enableAutoResize(false); // disable auto-resize
enableHardwareScaler
Enable or disable hardware scaler
enableOverlay
Enable or disable overlay
enablePip
Enable or disable video PiP - Picture-in-Picture. For example, in a one-to-one video call, you can display your video(self) as a floating video in the corner, on-top of the full screen video of the destination.
A PiP video is also draggable.
For example, in Android
videoView.enablePip(true); // enable PiP
videoView.enablePip(false); // disable PiP
scaleToFit
Scale video to fit in available space.
For example, in Android:
videoView.scaleToFit(true); // enable scale-to-fit
videoView.scaleToFit(false); // disable scale-to-fit
toggleScaling
Enable or disbale scaling with toggle.