|
|
|
|
@ -4,6 +4,7 @@ import android.app.Activity; |
|
|
|
|
import android.app.PendingIntent; |
|
|
|
|
import android.content.Intent; |
|
|
|
|
import android.net.Uri; |
|
|
|
|
import android.os.Bundle; |
|
|
|
|
import android.support.v4.media.MediaMetadataCompat; |
|
|
|
|
import android.support.v4.media.session.MediaControllerCompat; |
|
|
|
|
import android.support.v4.media.session.MediaSessionCompat; |
|
|
|
|
@ -557,6 +558,12 @@ public class Players implements Player.Listener, IMediaPlayer.Listener, Analytic |
|
|
|
|
return list.toArray(new String[0]); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public Bundle getHeaderBundle() { |
|
|
|
|
Bundle bundle = new Bundle(); |
|
|
|
|
for (Map.Entry<String, String> entry : getHeaders().entrySet()) bundle.putString(entry.getKey(), entry.getValue()); |
|
|
|
|
return bundle; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void checkData(Intent data) { |
|
|
|
|
try { |
|
|
|
|
if (data == null || data.getExtras() == null) return; |
|
|
|
|
|