TRTCAudioFrame

TRTCAudioFrame

Audio frame information

Constructor

new TRTCAudioFrame(audioFormat, data, length, sampleRate, channel, timestamp, extraData, extraDataLength)

Parameters:
Name Type Description
audioFormat TRTCAudioFrameFormat required

audio frame format

data ArrayBuffer required

audio data

length Number required

audio data length

sampleRate Number required

sample rate

channel Number required

number of sound channels

timestamp Number required

timestamp in ms

extraData ArrayBuffer | null required

extra data in audio frame, message sent by remote users through onLocalProcessedAudioFrame that add to audio frame will be callback through this field.

extraDataLength Number required

extra data length