getSharedResourceV2 abstract method

Future<ZegoCopyrightedMusicGetSharedResourceResult> getSharedResourceV2(
  1. ZegoCopyrightedMusicGetSharedConfigV2 config
)

Get shared music resource.

Available since: 3.12.0 Description: In addition to obtaining the basic information of the song (duration, song name, singer, etc.), and the most important resource id that can be used for local playback, there are also some related authentications information. Use case: Get copyrighted songs for local playback. Related APIs: After a user in the room calls the requestresource interface to request a music resource successfully, other users in the room can call this interface to get the music resource for free once. When to call: After initializing the copyrighted music initCopyrightedMusic. Note: Each resource has a unique resource ID. The resources obtained by calling this API are time-sensitive, the valid duration is the minimum value between the SDK life cycle and 24-hour.

  • config The configuration of getting shared music resource.
  • Returns Result of getting shared music resource.

Implementation

Future<ZegoCopyrightedMusicGetSharedResourceResult> getSharedResourceV2(
    ZegoCopyrightedMusicGetSharedConfigV2 config);