MethodChannelIvsBroadcaster class
A platform-specific implementation of the IvsBroadcasterPlatform using method channels. This class communicates with the native platform (iOS/Android) to manage broadcasting functionalities like camera control, permissions, and streaming setup.
- Inheritance
-
- Object
- PlatformInterface
- IvsBroadcasterPlatform
- MethodChannelIvsBroadcaster
Constructors
Properties
- eventChannel → EventChannel
-
The event channel used to receive real-time broadcasting data from the native platform.
final
- eventStream ↔ StreamSubscription?
-
A subscription to the event stream, listening for real-time data and errors during broadcasting.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to communicate with the native platform.
final
- 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.
override
-
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.
override
-
startBroadcast(
) → Future< void> -
Starts the broadcast.
override
-
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.
override
-
stopBroadcast(
) → Future< void> -
Stops the ongoing broadcast.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
zoomCamera(
double zoomValue) → Future -
Zooms the camera to the specified zoom level.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited