Search code examples
androiddeezer

BasicPlayer in new Deezer Android SDK 0.10.16


I want to use BasicPlayer in new SDK, but the solution from userGuide is not functional.

    Player player = new DefaultPlayerFactory(context, deezerConnect,
networkStateChecker).createPlayer();
// a track object fetched from the API
Track track = ... ;
// play a 30 seconds preview
player.init(track.getId(), track.getPreviewUrl());
// play a full track (only for premium users)
player.init(track.getId(), track.getStream());
// Start the player
player.play();

The DefaultPlayerFactory is not exists.


Solution

  • Indeed, it's an issue that occured with a misconfiguration of proguard on this release, I'll update this for the next version.

    The use of the BasicPlayer is not advised, alternatively, you should use a TrackPlayer which provide the same features as the BasicPlayer.