Bug 1057487 - Don't call stop when videos are done casting to Chromecast. r=mfinkle a=sylvestre
authorWes Johnston <wjohnston@mozilla.com>
Mon, 25 Aug 2014 09:16:20 -0700
changeset 217643 439ceee39acb0805e0248f16a89a866800e7327c
parent 217642 c3278a50ce13bf7afae5b197b3279c7bc837c00e
child 217644 ef319e5ce14893e0028494da9fc9fcba40b2824e
push id515
push userraliiev@mozilla.com
push dateMon, 06 Oct 2014 12:51:51 +0000
treeherdermozilla-release@267c7a481bef [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle, sylvestre
bugs1057487
milestone33.0a2
Bug 1057487 - Don't call stop when videos are done casting to Chromecast. r=mfinkle a=sylvestre
mobile/android/base/ChromeCast.java
--- a/mobile/android/base/ChromeCast.java
+++ b/mobile/android/base/ChromeCast.java
@@ -61,17 +61,16 @@ class ChromeCast implements GeckoMediaPl
         @Override
         public void onStatusUpdated() {
             MediaStatus mediaStatus = remoteMediaPlayer.getMediaStatus();
             boolean isPlaying = mediaStatus.getPlayerState() == MediaStatus.PLAYER_STATE_PLAYING;
 
             // TODO: Do we want to shutdown when there are errors?
             if (mediaStatus.getPlayerState() == MediaStatus.PLAYER_STATE_IDLE &&
                 mediaStatus.getIdleReason() == MediaStatus.IDLE_REASON_FINISHED) {
-                stop(null);
 
                 GeckoAppShell.sendEventToGecko(GeckoEvent.createBroadcastEvent("Casting:Stop", null));
             }
         }
 
         @Override
         public void onMetadataUpdated() {
             MediaInfo mediaInfo = remoteMediaPlayer.getMediaInfo();