Members
(readonly) channels :number
- number
(readonly) delay :number
The expected delay value is between 50 and 200 ms. If this value exceeds the upper threshold set in the audio configuration on the server side, a pitch shifting is applied to accellerate the playback and bring the latency back below the lower threshold (also set in the configuration).
- number
(readonly) droppedFrames :number
In this API audio frames are never dropped (if the application doesn't process them fast enough, they are delivered late), so this value is always 0. It is available for consistency with the other SmartFoxServer client APIs, so that the same application logic can be used.
Audio frames not delivered while the stream is muted, or while no listeners are registered for the SFSAudioEvent.OUTGOING_FRAME event, are not counted: a gap in the sequenceNumber values means that the stream was muted, or that no listeners were registered.
- number
(readonly) frameDurationMs :number
Audio is captured, encoded, transmitted and played back in fixed-length audio frames, each containing sampleRate * frameDurationMs / 1000 samples per channel. This value is defined in the audio configuration on the server side, is received by the client upon Audio Streaming System initialization and is shared by all audio streams.
When outgoing audio frames are exposed to the application (see ConfigData.AudioCfg.exposeOutgoingFrames), the time offset of an audio frame from the beginning of the stream is its sequenceNumber multiplied by this value.
- number
(readonly) id :number
The id is always equal to the User id of the client sending the audio stream.
- number
(readonly) isMono :boolean
- boolean
(readonly) isMuted :boolean
- boolean
(readonly) leftLevel :number
Measured value is peak value or RMS (Root Mean Square) value, depending on the ConfigData.AudioCfg.monitoringMode property. If this is an incoming stream, this value is measured if the ConfigData.AudioCfg.monitorInLevel property is set to true only. If this is an outgoing stream, it is measured if the ConfigData.AudioCfg.monitorOutLevel property is set to true only.
- number
(readonly) rightLevel :number
See leftLevel for more information. For mono audio (single audio channel), this value is equal to the left channel value.
- number
(readonly) room :SFSRoom
(readonly) sampleRate :number
- number