HMSAudioFilePlayerNode class

100ms HMSAudioFilePlayerNode

HMSAudioFilePlayerNode required a parameter type String which will be used at the control music player in the room.

Refer Audio sharing in iOS guide here

Constructors

HMSAudioFilePlayerNode(String methodName)

Properties

hashCode int
The hash code for this object.
no setterinherited
methodName String
final
name String
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

currentDuration() Future<double?>
The currentDuration function on HMSAudioFilePlayerNode will return the current duration of audio shared.
duration() Future<double?>
The duration function on HMSAudioFilePlayerNode will return the total duration of audio shared.
isPlaying() Future<bool>
The isPlaying function on HMSAudioFilePlayerNode to check if audio is playing or not. It will return bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() Future<void>
The pause function on HMSAudioFilePlayerNode to pause a file on a local device in a meeting room.
play({required String fileUrl, bool loop = false, bool interrupts = true}) Future<HMSException?>
The play function on HMSAudioFilePlayerNode to play a file on a local device in a meeting room.
resume() Future<HMSException?>
setVolume(double volume) → void
you can use the volume property on nodes to control the volume.
stop() Future<void>
The stop function on HMSAudioFilePlayerNode to stop a file on a local device in a meeting room.
toString() String
A string representation of this object.
inherited

Operators

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