NERtc iOS SDK  V4.4.301
构造函数 | 属性 | 所有成员列表
NERtcCreateAudioMixingOption类 参考

Options for creating mixing audios 更多...

#import <NERtcEngineBase.h>

类 NERtcCreateAudioMixingOption 继承关系图:

构造函数

(BOOL) - isInvalid
 Checks the validity of the option value. 更多...
 

属性

NSString * path
 The absolute path or URL address of the music file for playback. 更多...
 
int loopCount
 The number of loops the mixing audio is played back: 更多...
 
BOOL sendEnabled
 Specifies whether to send the mixing audio to the remote client. 更多...
 
BOOL playbackEnabled
 Specifies whether to play back the mixing audio on the local client. 更多...
 
uint32_t sendVolume
 Indicates the publishing volume of a music file. 更多...
 
uint32_t playbackVolume
 Indicates the playback volume of a music file. 更多...
 

详细描述

Options for creating mixing audios

函数文档

◆ isInvalid

- (BOOL) isInvalid

Checks the validity of the option value.

  • NO: The value of the option parameter is valid.
  • YES: The value of the option parameter is invalid. Check and try again.

属性说明

◆ loopCount

- (int) loopCount
readwritenonatomicassign

The number of loops the mixing audio is played back:

1: (default) Plays for one time. ≤ 0: Plays in an infinite loop until stops by calling pauseAudioMixing or stopAudioMixing.

◆ path

- (NSString*) path
readwritenonatomiccopy

The absolute path or URL address of the music file for playback.

The local absolute path or URL address is also supported.

  • The file name and extension.
  • Supported audio formats: MP3, M4A、AAC, 3GP, WMA, and WAV.

◆ playbackEnabled

- (BOOL) playbackEnabled
readwritenonatomicassign

Specifies whether to play back the mixing audio on the local client.

The default value is YES. The local users can hear the mixing audio.

◆ playbackVolume

- (uint32_t) playbackVolume
readwritenonatomicassign

Indicates the playback volume of a music file.

Valid values: 0 to 100. The default value is 100, which indicates that the original volume of the file is used.

注解
If you modify the volume setting during a call, this setting will be used by default when you call the method again during the current call.

◆ sendEnabled

- (BOOL) sendEnabled
readwritenonatomicassign

Specifies whether to send the mixing audio to the remote client.

The default value is YES. The remote user can hear the mixing audio after the remote user subscribes to the local audio stream.

◆ sendVolume

- (uint32_t) sendVolume
readwritenonatomicassign

Indicates the publishing volume of a music file.

Valid values: 0 to 100. The default value is 100, which indicates that the original volume of the file is used.

注解
If you modify the volume setting during a call, this setting will be used by default when you call the method again during the current call.

该类的文档由以下文件生成: