requestResourceV2 abstract method
Request 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 and sharing.
Related APIs: After a user in the room successfully calls this interface to request a music resource, other users in the room can call the getsharedresource
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.
- Every time this API is called, it will be billed once, please consult ZEGO business personnel for details.
- 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 requesting music resource.- Returns Result of requesting music resource.
Implementation
Future<ZegoCopyrightedMusicRequestResourceResult> requestResourceV2(
ZegoCopyrightedMusicRequestConfigV2 config);