Struct AudioMusicParam
Music and audio effect API parameters
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: trtc
Assembly: cs.temp.dll.dll
Syntax
public struct AudioMusicParam
Fields
endTimeMS
Description: end time (ms) for music playback. 0
or -1
means to play the music to the end.
Declaration
public int endTimeMS
Field Value
Type | Description |
---|---|
System.Int32 |
id
Description: music ID Note: The SDK allows you to play multiple music tracks. You use music ID to identify a music track and control its playback, volume, etc.
Declaration
public int id
Field Value
Type | Description |
---|---|
System.Int32 |
isShortFile
Description: whether to play a short music file
Value: YES
: short music file, which will be looped; NO
(default): normal-length music file
Declaration
public bool isShortFile
Field Value
Type | Description |
---|---|
System.Boolean |
loopCount
Declaration
public int loopCount
Field Value
Type | Description |
---|---|
System.Int32 |
path
Description: absolute path of a music file
Declaration
public String path
Field Value
Type | Description |
---|---|
String |
publish
Description: whether to send the music to remote users
Value: YES
: publish the music played locally to the cloud so that remote users can hear it; NO
(default): play the music locally only and do not publish it
Declaration
public bool publish
Field Value
Type | Description |
---|---|
System.Boolean |
startTimeMS
Description: start time (ms) for music playback
Declaration
public int startTimeMS
Field Value
Type | Description |
---|---|
System.Int32 |