Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ public void onPlayerStateChanged(boolean playWhenReady, int state) {
@Override
public void onPlayerError(ExoPlaybackException exception) {
for (Callback tvCallback : mTvPlayerCallbacks) {
tvCallback.onError();
tvCallback.onError(exception);
}
rendererBuildingState = RENDERER_BUILDING_STATE_IDLE;
for (Listener listener : listeners) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public void onCompleted() {
}

@Override
public void onError() {
public void onError(Exception error) {
for (VideoAdPlayerCallback callback : mAdCallbacks) {
callback.onError();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import android.media.tv.TvInputInfo;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.Build;
import android.os.PersistableBundle;
import android.os.RemoteException;
import android.support.annotation.VisibleForTesting;
Expand Down Expand Up @@ -327,6 +328,10 @@ public static void requestImmediateSync(Context context, String inputId, long sy
throw new IllegalArgumentException("This class does not extend EpgSyncJobService");
}
PersistableBundle persistableBundle = new PersistableBundle();
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP_MR1) {
persistableBundle.putBoolean(ContentResolver.SYNC_EXTRAS_MANUAL, true);
persistableBundle.putBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, true);
}
persistableBundle.putBoolean(ContentResolver.SYNC_EXTRAS_MANUAL, true);
persistableBundle.putBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, true);
persistableBundle.putString(EpgSyncJobService.BUNDLE_KEY_INPUT_ID, inputId);
Expand Down Expand Up @@ -667,4 +672,4 @@ private void updatePrograms(Uri channelUri, List<Program> newPrograms) {
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public void onCompleted() {
/**
* Called when an error occurs during video playback.
*/
public void onError() {
public void onError(Exception error) {

}

Expand Down