Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(442)

Unified Diff: ui/file_manager/video_player/js/cast/cast_video_element.js

Issue 1987173002: Video Player: Support Media Router to cast Drive videos. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/file_manager/video_player/js/cast/cast_video_element.js
diff --git a/ui/file_manager/video_player/js/cast/cast_video_element.js b/ui/file_manager/video_player/js/cast/cast_video_element.js
index 0aa1f3fc5c18c4961a2a8550c6fef9a1c65398ad..700c8233b51ff08fe409d7400f22270e3c0882de 100644
--- a/ui/file_manager/video_player/js/cast/cast_video_element.js
+++ b/ui/file_manager/video_player/js/cast/cast_video_element.js
@@ -349,8 +349,10 @@ CastVideoElement.prototype = /** @struct */ {
function() {},
function(error) {
// Ignores session error, since session may already be closed.
- if (error.code !== chrome.cast.ErrorCode.SESSION_ERROR)
+ if (error.code !== chrome.cast.ErrorCode.SESSION_ERROR &&
+ error.code !== chrome.cast.ErrorCode.INVALID_PARAMETER) {
this.onCastCommandError_(error);
+ }
}.wrap(this));
this.castMedia_.removeUpdateListener(this.onCastMediaUpdatedBound_);
« no previous file with comments | « ui/file_manager/video_player/js/cast/cast_extension_discoverer.js ('k') | ui/file_manager/video_player/js/cast/caster.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698