createCopyrightedMusic method

Future<ZegoCopyrightedMusic?> createCopyrightedMusic()

Creates a copyrighted music instance.

Available since: 2.13.0 Description: Creates a copyrighted music instance. Use case: Often used in online KTV chorus scenarios, users can use related functions by creating copyrighted music instance objects. When to call: It can be called after the engine by createEngine has been initialized. Restrictions: The SDK only supports the creation of one instance of CopyrightedMusic. Multiple calls to this function return the same object.

  • Returns copyrighted music instance, multiple calls to this function return the same object.

Implementation

Future<ZegoCopyrightedMusic?> createCopyrightedMusic() async {
  return await ZegoExpressImpl.instance.createCopyrightedMusic();
}