Docs tweaks

This commit is contained in:
Sam Potts
2015-10-05 01:39:55 +11:00
parent daec1baebc
commit 2c4c8c58d5
8 changed files with 18 additions and 28 deletions

View File

@ -1790,20 +1790,6 @@
_updateProgress(event);
}
// Remove <source> children and src attribute
/*function _removeSources() {
// Find child <source> elements
var sources = player.media.querySelectorAll('source');
// Remove each
for (var i = sources.length - 1; i >= 0; i--) {
_remove(sources[i]);
}
// Remove src attribute
player.media.removeAttribute('src');
}*/
// Add a source element
function _addSource(attributes) {
_insertElement('source', player.media, attributes);
@ -1949,7 +1935,12 @@
if (config.autoplay) {
_play();
}
}
}
if('title' in source) {
config.title = source.title;
_setupPlayAria();
}
}
// Update poster