diff options
author | Anton Vayvod <avayvod@google.com> | 2015-11-26 22:13:25 +0000 |
---|---|---|
committer | Anton Vayvod <avayvod@google.com> | 2015-11-26 22:14:44 +0000 |
commit | c2cefc8cf689b3087fe1d6ee1f99663fcf181ce7 (patch) | |
tree | e267534a66686f7b4b7a0fad5a3839e38b3aa7c0 | |
parent | 97f0b2a9a15815173bce6be90a5a9d8d601bf686 (diff) | |
download | chromium_src-c2cefc8cf689b3087fe1d6ee1f99663fcf181ce7.zip chromium_src-c2cefc8cf689b3087fe1d6ee1f99663fcf181ce7.tar.gz chromium_src-c2cefc8cf689b3087fe1d6ee1f99663fcf181ce7.tar.bz2 |
[Cast,Android,Presentation API] Request media status when client is connected.
BUG=558565
When Chrome joins an already running Cast application, the media status
update is not sent on connection. Request the status to get the up-to-date
media status.
Review URL: https://codereview.chromium.org/1480943002
Cr-Commit-Position: refs/heads/master@{#361920}
(cherry picked from commit 39093b3e697ae0075b47634bed4de81fb5347d5a)
Review URL: https://codereview.chromium.org/1482673002 .
Cr-Commit-Position: refs/branch-heads/2564@{#145}
Cr-Branched-From: 1283eca15bd9f772387f75241576cde7bdec7f54-refs/heads/master@{#359700}
-rw-r--r-- | chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/CastRouteController.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/CastRouteController.java b/chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/CastRouteController.java index 13536c0..51852a6 100644 --- a/chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/CastRouteController.java +++ b/chrome/android/java/src/org/chromium/chrome/browser/media/router/cast/CastRouteController.java @@ -483,6 +483,9 @@ public class CastRouteController implements RouteController, MediaNotificationLi mRouteDelegate.onMessage(mMediaRouteId, buildInternalMessage( "new_session", buildSessionMessage(), clientId, INVALID_SEQUENCE_NUMBER)); + + if (mMediaPlayer != null && !isApiClientInvalid()) mMediaPlayer.requestStatus(mApiClient); + return true; } |