MusicContentCenterConfiguration
Configures the music content center.
public class MusicContentCenterConfiguration {
public String appId;
public String token;
public long mccUid;
public int maxCacheSize;
public IMusicContentCenterEventHandler eventHandler;
public String mccDomain;
}
Properties
- appId
- The App ID of the project that enables the music content center.
- token
- The token used for authentication when using the music content center.
Note: Agora recommends using AccessToken2 for authentication. See
Deploying the Token Server. When generating the token, pass theStringtypemccUidas theuidparameter. When the token is about to expire, you can call renewToken to provide a new token. - mccUid
- The user ID for using the music content center. It can be the same as the
uidused when joining the RTC channel, but it cannot be 0. - maxCacheSize
- The number of cached music resources must not exceed 50.
- eventHandler
- The event callback interface. See IMusicContentCenterEventHandler.