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()
- 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
-
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 camera and microphone permissions necessary for broadcasting.
-
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)?}) → 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 ↔ IvsBroadcasterPlatform
-
Gets the current instance of IvsBroadcasterPlatform.
getter/setter pair