IvsBroadcasterPlatform class abstract

An abstract base class that defines the interface for platform-specific implementations of the IVS Broadcaster functionality. This class uses the PlatformInterface from the plugin_platform_interface package to ensure that platform-specific implementations adhere to this interface.

The default implementation uses method channels (MethodChannelIvsBroadcaster), but other implementations can be swapped in by changing the instance property.

Inheritance
  • Object
  • PlatformInterface
  • IvsBroadcasterPlatform
Implementers

Constructors

IvsBroadcasterPlatform.new()
Constructs an IvsBroadcasterPlatform.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

captureVideo(int seconds) Future<void>
changeCamera(CameraType cameraType) Future<void>
Switches the camera to the specified CameraType.
getAvailableCameraLens() Future<List<IOSCameraLens>>
getZoomFactor() Future<ZoomFactor>
isMuted() Future<bool>
To Check if currently Muted or not
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestPermissions() Future<bool>
Requests camera and microphone permissions necessary for broadcasting.
setFocusMode(FocusMode focusMode) Future<bool?>
setFocusPoint(double x, double y) Future<bool?>
startBroadcast() Future<void>
Starts the broadcast.
startPreview({required String imgset, required String streamKey, IvsQuality quality = IvsQuality.q720, CameraType cameraType = CameraType.BACK, void onData(dynamic)?, void onError(dynamic)?, bool autoReconnect}) Future<void>
Starts the camera preview for the broadcast with the specified settings.
stopBroadcast() Future<void>
Stops the ongoing broadcast.
stopVideoCapture() Future<void>
toggleMute() Future<void>
Toggle Mute and Unmute the microphone
toString() String
A string representation of this object.
inherited
updateCameraLens(IOSCameraLens cameraLens) Future<String?>
To Update CameraLens to the specified IOSCameraLens
zoomCamera(double zoomValue) Future
Zooms the camera to the specified zoom level.

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance IvsBroadcasterPlatform
Gets the current instance of IvsBroadcasterPlatform.
getter/setter pair