getMusicByToken abstract method

  1. @Deprecated('Deprecated since 3.0.2, please use the [getSharedResource] function instead.')
Future<ZegoCopyrightedMusicGetMusicByTokenResult> getMusicByToken(
  1. String shareToken
)

Deprecated Get a song or accompaniment. Deprecated since 3.0.2, please use the getSharedResource function instead.

Available since: 2.13.0 Description: After the user successfully obtains the song/accompaniment/accompaniment clip resource, he can get the corresponding shareToken, share the shareToken with other users, and other users call this interface to obtain the shared music resources. Use case: In the online KTV scene, after receiving the song or accompaniment token shared by the lead singer, the chorus obtains the corresponding song or accompaniment through this interface, and then plays it on the local end. When to call: After initializing the copyrighted music success initCopyrightedMusic.

@deprecated Deprecated since 3.0.2, please use the getSharedResource function instead.

  • shareToken access the corresponding authorization token for a song or accompaniment.

Implementation

@Deprecated(
    'Deprecated since 3.0.2, please use the [getSharedResource] function instead.')
Future<ZegoCopyrightedMusicGetMusicByTokenResult> getMusicByToken(
    String shareToken);