From 09f5c92541f2d62bf0a24c3d46cc4baee69c0198 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 13 Feb 2019 09:38:40 +0100 Subject: [PATCH] Passing url from the promise in the right way --- platypush/backend/http/static/js/media.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platypush/backend/http/static/js/media.js b/platypush/backend/http/static/js/media.js index ea755564..332d2fab 100644 --- a/platypush/backend/http/static/js/media.js +++ b/platypush/backend/http/static/js/media.js @@ -241,8 +241,8 @@ $(document).ready(function() { }, }; - startStreaming(resource, subtitles).then((response) => { - requestArgs.args.resource = response.url; + startStreaming(resource, subtitles).then((url) => { + requestArgs.args.resource = url; // XXX subtitles currently break the Chromecast playback, // see https://github.com/balloob/pychromecast/issues/74 // if (response.subtitles) {