-
- All Implemented Interfaces:
-
com.twilio.video.Track
public abstract class AudioTrack implements Track
-
-
Method Summary
Modifier and Type Method Description StringgetName()Returns the audio track name. booleanisEnabled()Check if this audio track is enabled. synchronized voidaddSink(@NonNull() AudioSink audioSink)Adds a sink to the Track. synchronized voidremoveSink(@NonNull() AudioSink audioSink)Removes a sink from the Track. -
-
Method Detail
-
getName
@NonNull() String getName()
Returns the audio track name. A pseudo random string is returned if no track name wasspecified.
-
isEnabled
boolean isEnabled()
Check if this audio track is enabled.
-
addSink
synchronized void addSink(@NonNull() AudioSink audioSink)
Adds a sink to the Track. Sinks consume raw audio samples for further processing or storage.
-
removeSink
synchronized void removeSink(@NonNull() AudioSink audioSink)
Removes a sink from the Track.
- Parameters:
audioSink- An object that implements the `AudioSink` interface.
-
-
-
-