From 0d96601d1af8c75f99f750225ccfef25b5117b0d Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Mon, 2 Oct 2017 14:48:15 +1100 Subject: CDN URLs --- src/js/plyr.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/js') diff --git a/src/js/plyr.js b/src/js/plyr.js index 7c7f6580..a9e1c4c0 100644 --- a/src/js/plyr.js +++ b/src/js/plyr.js @@ -68,6 +68,9 @@ iconPrefix: 'plyr', iconUrl: 'https://cdn.plyr.io/2.0.10/plyr.svg', + // Blank video (used to prevent errors on source change) + blankVideo: 'https://cdn.plyr.io/static/blank.mp4', + // Pass a custom duration duration: null, @@ -4562,7 +4565,7 @@ // Set blank video src attribute // This is to prevent a MEDIA_ERR_SRC_NOT_SUPPORTED error // Info: http://stackoverflow.com/questions/32231579/how-to-properly-dispose-of-an-html5-video-and-close-socket-or-connection - player.media.setAttribute('src', 'https://cdn.selz.com/plyr/blank.mp4'); + player.media.setAttribute('src', player.config.blankVideo); // Load the new empty source // This will cancel existing requests -- cgit v1.2.3