// Path: app/src/main/java/com/commonslab/commonslab/Activities/MainActivity.java
// public static final String PAUSE_OPUS = "org.wikimedia.commons.wikimedia.PAUSE_OPUS";
// 
// Path: app/src/main/java/com/commonslab/commonslab/Activities/MainActivity.java
// public static final String PLAY_OPUS = "org.wikimedia.commons.wikimedia.PLAY_OPUS";
// 
// Path: app/src/main/java/com/commonslab/commonslab/Activities/MainActivity.java
// public static final String SEEKBAR_UPDATE_OPUS = "org.wikimedia.commons.wikimedia.SEEKBAR_UPDATE_OPUS";
// 
// Path: app/src/main/java/com/commonslab/commonslab/Activities/MainActivity.java
// public static final String STOP_OPUS = "org.wikimedia.commons.wikimedia.STOP_OPUS";


import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.util.Log;
import android.widget.Toast;
import com.audionowdigital.android.openplayer.Player;
import com.audionowdigital.android.openplayer.PlayerEvents;
import com.commonslab.commonslab.R;
import static com.commonslab.commonslab.Activities.MainActivity.PAUSE_OPUS;
import static com.commonslab.commonslab.Activities.MainActivity.PLAY_OPUS;
import static com.commonslab.commonslab.Activities.MainActivity.SEEKBAR_UPDATE_OPUS;
import static com.commonslab.commonslab.Activities.MainActivity.STOP_OPUS;
package com.commonslab.commonslab.AudioPlayer;





/**
 * Created by Valdio Veliu on 25/03/2017.
 */

public class OpusPlayer {

    Intent broadcastIntent = new Intent(STOP_OPUS);
    private Player player;
    // Playback handler for callbacks
    private Handler playbackHandler;

    private int LENGTH = 0;

    private Player.DecoderType type = Player.DecoderType.OPUS;
    private String TAG = "OPUS_MEDIA";
    private String mediaURL;
    private Context context;
// Path: app/src/main/java/com/commonslab/commonslab/Activities/MainActivity.java
// public static final String PAUSE_OPUS = "org.wikimedia.commons.wikimedia.PAUSE_OPUS";
// 
// Path: app/src/main/java/com/commonslab/commonslab/Activities/MainActivity.java
// public static final String PLAY_OPUS = "org.wikimedia.commons.wikimedia.PLAY_OPUS";
// 
// Path: app/src/main/java/com/commonslab/commonslab/Activities/MainActivity.java
// public static final String SEEKBAR_UPDATE_OPUS = "org.wikimedia.commons.wikimedia.SEEKBAR_UPDATE_OPUS";
// 
// Path: app/src/main/java/com/commonslab/commonslab/Activities/MainActivity.java
// public static final String STOP_OPUS = "org.wikimedia.commons.wikimedia.STOP_OPUS";


// Path: app/src/main/java/com/commonslab/commonslab/AudioPlayer/OpusPlayer.java
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.util.Log;
import android.widget.Toast;
import com.audionowdigital.android.openplayer.Player;
import com.audionowdigital.android.openplayer.PlayerEvents;
import com.commonslab.commonslab.R;
import static com.commonslab.commonslab.Activities.MainActivity.PAUSE_OPUS;
import static com.commonslab.commonslab.Activities.MainActivity.PLAY_OPUS;
import static com.commonslab.commonslab.Activities.MainActivity.SEEKBAR_UPDATE_OPUS;
import static com.commonslab.commonslab.Activities.MainActivity.STOP_OPUS;

package com.commonslab.commonslab.AudioPlayer;





/**
 * Created by Valdio Veliu on 25/03/2017.
 */

public class OpusPlayer {

    Intent broadcastIntent = new Intent(STOP_OPUS);
    private Player player;
    // Playback handler for callbacks
    private Handler playbackHandler;

    private int LENGTH = 0;

    private Player.DecoderType type = Player.DecoderType.OPUS;
    private String TAG = "OPUS_MEDIA";
    private String mediaURL;
    private Context context;
    private Intent seekBarIntent = new Intent(SEEKBAR_UPDATE_OPUS);