MediaEngine class abstract
The MediaEngine class.
Constructors
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
-
createCustomAudioTrack(
{required AudioTrackType trackType, required AudioTrackConfig config}) → Future< int> - Creates a custom audio track.
-
destroyCustomAudioTrack(
int trackId) → Future< void> - Destroys the specified audio track.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pullAudioFrame(
AudioFrame frame) → Future< void> - Pulls the remote audio data.
-
pushAudioFrame(
{required AudioFrame frame, int trackId = 0}) → Future< void> - Pushes the external audio frame.
-
pushVideoFrame(
{required ExternalVideoFrame frame, int videoTrackId = 0}) → Future< void> - Pushes the external raw video frame to the SDK through video tracks.
-
registerAudioFrameObserver(
AudioFrameObserver observer) → void - Registers an audio frame observer object.
-
registerFaceInfoObserver(
FaceInfoObserver observer) → void - Registers a facial information observer.
-
registerVideoEncodedFrameObserver(
VideoEncodedFrameObserver observer) → void - Registers a receiver object for the encoded video image.
-
registerVideoFrameObserver(
VideoFrameObserver observer) → void - Registers a raw video frame observer object.
-
setExternalAudioSink(
{required bool enabled, required int sampleRate, required int channels}) → Future< void> - Sets the external audio sink.
-
setExternalAudioSource(
{required bool enabled, required int sampleRate, required int channels, bool localPlayback = false, bool publish = true}) → Future< void> - Sets the external audio source parameters.
-
setExternalVideoSource(
{required bool enabled, required bool useTexture, ExternalVideoSourceType sourceType = ExternalVideoSourceType.videoFrame, SenderOptions encodedVideoOption = const SenderOptions()}) → Future< void> - Configures the external video source.
-
toString(
) → String -
A string representation of this object.
inherited
-
unregisterAudioFrameObserver(
AudioFrameObserver observer) → void - Unregisters an audio frame observer.
-
unregisterFaceInfoObserver(
FaceInfoObserver observer) → void - Unregisters a facial information observer.
-
unregisterVideoEncodedFrameObserver(
VideoEncodedFrameObserver observer) → void - Unregisters a receiver object for the encoded video frame.
-
unregisterVideoFrameObserver(
VideoFrameObserver observer) → void - Unregisters the video frame observer.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited