Added seek event fixes (fixes #409), Added support for URLs (fixes #345)

This commit is contained in:
Sam Potts
2016-11-02 18:09:40 +11:00
parent 10561d6c83
commit efe54fbba4
5 changed files with 74 additions and 37 deletions

View File

@ -94,7 +94,7 @@
// Set a new source
function newSource(type, init) {
// Bail if new type isn't known, it's the current type, or current type is empty (video is default) and new type is video
if(!(type in types) || (!init && type == currentType) || (!currentType.length && type == types.video)) {
if(!(type in types) || (!init && type === currentType) || (!currentType.length && type === types.video)) {
return;
}