cuddly-lizard-69432
03/27/2025, 6:19 PMtall-airline-16756
03/27/2025, 6:19 PMtall-airline-16756
03/27/2025, 6:19 PM// Gets the volume of attached audio elements (loudest)
const volume = remoteAudioTrack.getVolume();
• Unity SDK: // Returns a float representing the volume
float volume = remoteAudioTrack.GetVolume();
• Swift SDK: // Volume with range 0.0 - 1.0
let volume = remoteAudioTrack.volume
• React Native SDK: // A hook for tracking the volume of an audio track
// Returns a number between 0-1 representing the volume
const volume = useTrackVolume(remoteAudioTrack);
Let me know if you need further assistance!
Sources: volume | Documentation | useTrackVolume | LiveKit React Native Client SDK - v2.6.0 | RemoteAudioTrack | LiveKit JS Client SDK - v2.8.1 | Class RemoteAudioTrack | LiveKit Unity SDK | RemoteAudioTrack | Documentation