Use defined function instead of hard coding
This commit is contained in:
parent
2bc53d12ea
commit
6b41752415
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user