MusicContentCenterConfiguration
Used to configure the music content center.
struct MusicContentCenterConfiguration {
const char *appId;
const char *token;
int64_t mccUid;
int32_t maxCacheSize;
const char* mccDomain;
IMusicContentCenterEventHandler* eventHandler;
};
Properties
- appId
- The App ID of the project that enables the music content center.
- token
- The token used for authentication with the music content center.
Note: Agora recommends using AccessToken2 for authentication. See
Deploy Token Server. When generating the token, pass theStringtypemccUidintouid. When the token is about to expire, you can call renewToken to pass in a new token. - mccUid
- The user ID used for the music content center. This ID can be the same as the
uidused when joining an RTC channel, but it cannot be 0. - maxCacheSize
- The number of music resources that can be cached, with a maximum value of 50.
- eventHandler
- The event handler used to receive callbacks. See IMusicContentCenterEventHandler.