IvsBroadcaster class
A singleton class that manages the IVS (Interactive Video Service) broadcasting. It interfaces with the platform-specific broadcaster implementations to handle broadcasting, camera operations, and streaming settings.
Constructors
- IvsBroadcaster()
-
A factory constructor that returns the single instance of IvsBroadcaster.
factory
Properties
-
broadcastHealth
↔ StreamController<
BroadcastHealth> -
A stream controller to handle the broadcast health events.
getter/setter pair
-
broadcastQuality
↔ StreamController<
BroadcastQuality> -
A stream controller to handle the broadcast quality events.
getter/setter pair
-
broadcastState
↔ StreamController<
BroadCastState> -
A stream controller to handle the broadcast state events.
getter/setter pair
- broadcater → IvsBroadcasterPlatform
-
An instance of the platform-specific broadcaster.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
changeCamera(
CameraType cameraType) → Future< void> - Switches the camera to the specified CameraType.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
requestPermissions(
) → Future< bool> - Requests the necessary permissions for broadcasting.
-
startBroadcast(
) → Future< void> - Starts the broadcast.
-
startPreview(
{required String imgset, required String streamKey, IvsQuality quality = IvsQuality.q720, CameraType cameraType = CameraType.BACK}) → Future< void> - Starts the camera preview for the broadcast with the specified settings.
-
stopBroadcast(
) → Future< void> - Stops the ongoing broadcast.
-
toString(
) → String -
A string representation of this object.
inherited
-
zoomCamera(
double zoomValue) → Future - Zooms the camera to the specified zoom level.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → IvsBroadcaster
-
The single instance of IvsBroadcaster.
final