initCopyrightedMusic abstract method

Future<ZegoCopyrightedMusicInitResult> initCopyrightedMusic(
  1. ZegoCopyrightedMusicConfig config
)

Initialize the copyrighted music module.

Available since: 2.13.0 Description: Initialize the copyrighted music so that you can use the function of the copyrighted music later. When to call: After call createCopyrightedMusic and loginRoom. Caution: 1. The real user information must be passed in, otherwise the song resources cannot be obtained for playback. 2. The user ID set when initializing copyrighted music needs to be the same as the user ID set when logging in to the room.

  • config the copyrighted music configuration.

Implementation

Future<ZegoCopyrightedMusicInitResult> initCopyrightedMusic(
    ZegoCopyrightedMusicConfig config);