Use defined function instead of hard coding

This commit is contained in:
Calvin Tam 2015-08-13 00:13:57 -07:00
parent 2bc53d12ea
commit 6b41752415

View File

@ -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