Serenada Session
Represents an active call session. Created via SerenadaCore.join or SerenadaCore.createRoom.
Observe state for app-facing call state changes and diagnostics for low-level transport/media details. Control the call via leave, end, toggleAudio, toggleVideo, etc. Call close once the host is done with the session object.
Properties
Audio routes currently published by the active coordinator.
Current selected or active output route, or null when no route is available yet.
Real-time connection diagnostics (stats, transport state, ICE state).
Whether the microphone is effectively muted by user action, external audio, or missing input.
Whether the microphone is muted specifically because external audio, such as push-to-talk, is active.
Callback invoked when camera/microphone permissions are needed before joining.
Aggregate call-quality summary. Reflects the live tracker while in-call and the finalized snapshot after the call ends; stays readable after teardown. Null before sampling begins (first InCall).
Functions
Adjust the camera zoom level by the given scale factor.
Attach a sink to the LOCAL content (screen share) track for local preview.
Attach a org.webrtc.SurfaceViewRenderer for local video preview.
Attach a sink to a specific peer's remote CONTENT (screen share) track.
Attach a org.webrtc.SurfaceViewRenderer for remote video.
Cancel an in-progress join attempt.
Capture a JPEG snapshot of the local video frame.
Capture the current video frame from the chosen stream as JPEG bytes at the source track's full intrinsic resolution.
Detach a previously attached local content renderer.
Detach a previously attached local video renderer.
Detach a previously attached remote content renderer for a peer.
Detach a previously attached remote video renderer.
Get the EGL context for custom rendering or renderer initialization.
Cycle to the next camera mode in the configured preference order.
Resume joining after camera/microphone permissions have been granted.
Request routing to a coordinator-published audio device.
Set a specific camera mode. Ignored when mode is not in the configured list.
Set the user-requested microphone mute state.
Start screen sharing using the given media projection intent.
Stop screen sharing and return to camera.
Toggle local audio on or off.
Toggle the device flashlight on or off.
Toggle local video on or off.