MediaEngine class abstract

MediaEngine class.

Constructors

MediaEngine()

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 remote audio data.
pushAudioFrame({required AudioFrame frame, int trackId = 0}) → Future<void>
Pushes external audio frames.
pushVideoFrame({required ExternalVideoFrame frame, int videoTrackId = 0}) → Future<void>
Publishes external raw video frames to the channel through a custom video track.
registerAudioFrameObserver(AudioFrameObserver observer) → void
Registers an audio observer object.
registerFaceInfoObserver(FaceInfoObserver observer) → void
Registers a face information observer.
registerVideoEncodedFrameObserver(VideoEncodedFrameObserver observer) → void
Registers a video frame observer for encoded video images.
registerVideoFrameObserver(VideoFrameObserver observer) → void
Registers a raw video frame observer object.
setExternalAudioSink({required bool enabled, required int sampleRate, required int channels}) → Future<void>
Sets external audio rendering.
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>
Sets the external video source.
toString() → String
A string representation of this object.
inherited
unregisterAudioFrameObserver(AudioFrameObserver observer) → void
Unregisters the audio frame observer.
unregisterFaceInfoObserver(FaceInfoObserver observer) → void
Unregisters the face information observer.
unregisterVideoEncodedFrameObserver(VideoEncodedFrameObserver observer) → void
Unregisters the video frame observer for encoded video frames.
unregisterVideoFrameObserver(VideoFrameObserver observer) → void
Unregisters the video frame observer.

Operators

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