From 6b4175241599fe08fa11cbdd2246f659fd20c37d Mon Sep 17 00:00:00 2001 From: Calvin Tam Date: Thu, 13 Aug 2015 00:13:57 -0700 Subject: [PATCH] Use defined function instead of hard coding --- src/js/plyr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/plyr.js b/src/js/plyr.js index 84a01225..04ac00cb 100644 --- a/src/js/plyr.js +++ b/src/js/plyr.js @@ -1666,7 +1666,7 @@ // If a single source is passed // .source("path/to/video.mp4") if (typeof sources === "string") { - player.media.setAttribute("src", sources); + _addSource({ src: sources }); } // An array of source objects