Track errors on Android

Last update: 2022-11-11
  • Created for:
  • User
    Admin
    Developer

The following instructions provide guidance for implementation using 2.x SDKs.

IMPORTANT

If you are implementing a 1.x version of the SDK, you can download the 1.x Developers Guides here: Download SDKs.

  1. Track media player errors:

    public void onPlayerError(Observable observable, Object data) {
        _heartbeat.trackError("mediaErrorID");
    }
    
NOTE

Tracking media player errors will not stop the media tracking session. If the media player error prevents the playback from continuing, make sure that the media tracking session is closed by calling trackSessionEnd after calling trackError.

On this page