Agora React Native UI KIT

Agora React Native UI KIT

  • Docs
  • API Reference
  • GitHub

›Interfaces

Introduction

  • Globals
  • Globals

External Modules

  • AgoraView.native
  • RtcEngine.native
  • index
  • types

Classes

  • AgoraView
  • RtcEngine

Enums

  • AgoraViewMode
  • AudioChannelStereo
  • AudioCodecProfile
  • AudioSampleRate
  • VideoCodecProfile

Interfaces

  • AgoraUserInfo
  • AgoraViewProps
  • AudioFrameOption
  • AudioMixingOption
  • AudioRecordingOption
  • BackgroundImage
  • BeautyOption
  • CameraCapturerConfiguration
  • ChannelMediaConfiguration
  • ChannelMediaInfo
  • Color
  • DataStreamOption
  • DefaultVideoStreamOption
  • ImageOption
  • InjectStreamOption
  • LastmileProbeConfig
  • LiveTranscodingOption
  • MixedAudioFrameOption
  • Option
  • PlayEffectOption
  • PositionOption
  • PublishStreamOption
  • PublisherConfig
  • RemoveInjectStreamOption
  • RemovePublishStreamOption
  • Size
  • TranscodingUser
  • VideoEncoderConfig
  • VideoOption
  • VideoStreamOption
  • VoiceDecorator

AudioFrameOption

rn-agora-docs › "types" › AudioFrameOption

Hierarchy

  • AudioFrameOption

Index

Properties

  • channel
  • mode
  • sampleRate
  • samplesPerCall

Properties

channel

• channel: number

Defined in types.ts:437

Sets the number of channels (channels) returned in the onPlaybackFrame callback:

  • 1: Mono
  • 2: Stereo

mode

• mode: number

Defined in types.ts:444

Sets the use mode of the onPlaybackFrame callback:

  • RAW_AUDIO_FRAME_OP_MODE_READ_ONLY(0): Read-only mode: Users only read the AudioFrame data without modifying anything. For example, when users acquire the data with the Agora SDK then push the RTMP streams.
  • RAW_AUDIO_FRAME_OP_MODE_WRITE_ONLY(1): Write-only mode: Users replace the AudioFrame data with their own data. For example, users can use this mode when they acquire data by themselves.
  • RAW_AUDIO_FRAME_OP_MODE_READ_WRITE(2): Read and write mode: Users read the data from AudioFrame, modify it, and then play it. For example, users can use this mode when they have their own sound-effect processing module, and want to do some voice post-processing, such as a voice change.

sampleRate

• sampleRate: number

Defined in types.ts:431

Sets the sample rate (samplesPerSec) returned in the onPlaybackFrame callback, which can be set as 8000, 16000, 32000, 44100, or 48000 Hz.


samplesPerCall

• samplesPerCall: number

Defined in types.ts:448

Sets the sample points (samples) returned in the onPlaybackFrame callback. samplesPerCall is usually set as 1024 for stream pushing. samplesPerCall = (int)(samplesPerSec × sampleInterval × numChannels), where sampleInterval ≥ 0.01 in seconds.

← AgoraViewPropsAudioMixingOption →
  • Hierarchy
  • Index
    • Properties
  • Properties
    • channel
    • mode
    • sampleRate
    • samplesPerCall
Agora React Native UI KIT
Docs
Getting Started (or other categories)Guides (or other categories)API Reference (or other categories)
Community
User ShowcaseStack OverflowProject ChatTwitter
More
BlogGitHubStar