Skip to content

Commit

Permalink
Change method name to onMediaLoadResult(..) per CCL
Browse files Browse the repository at this point in the history
Change the method name to onMediaLoadResult(..)

Change-Id: I0e234f12f0c9ab88ecc111671498297128f9bbb7
  • Loading branch information
nageshs authored and mangini committed Mar 10, 2015
1 parent 39a49be commit b76e6ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Binary file modified mobile/libs/CastCompanionLibrary-debug.aar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import com.example.android.uamp.utils.LogHelper;
import com.example.android.uamp.utils.MediaIDHelper;
import com.google.android.gms.cast.ApplicationMetadata;
import com.google.android.gms.cast.CastStatusCodes;
import com.google.android.gms.cast.MediaInfo;
import com.google.android.gms.cast.MediaMetadata;
import com.google.android.gms.cast.MediaStatus;
Expand Down Expand Up @@ -358,8 +359,8 @@ private OnMediaLoadedStatusListener(VideoCastManager manager, boolean play) {
}

@Override
public void onMediaLoadRequestStatus(boolean success, Integer failureCode) {
if (success) {
public void onMediaLoadResult(int statusCode) {
if (statusCode == CastStatusCodes.SUCCESS) {
// Remove the listener as soon as we're done with the action.
mCastManager.removeVideoCastConsumer(this);

Expand All @@ -375,7 +376,7 @@ public void onMediaLoadRequestStatus(boolean success, Integer failureCode) {
LogHelper.e(TAG, e, "Exception pausing stream");
}
} else {
LogHelper.e(TAG, "Error calling loadMedia with status ", failureCode);
LogHelper.e(TAG, "Error calling loadMedia with status ", statusCode);
}
}
}
Expand Down

0 comments on commit b76e6ee

Please sign in to comment.