Work on Audio UI

This commit is contained in:
Sam
2016-04-25 22:48:40 +10:00
parent d41249bd90
commit e26694c322
5 changed files with 82 additions and 75 deletions

View File

@ -1317,6 +1317,12 @@
// Add type class
_toggleClass(plyr.container, config.classes.type.replace('{0}', plyr.type), true);
// Add video class for embeds
// This will require changes if audio embeds are added
if (_inArray(config.types.embed, plyr.type)) {
_toggleClass(plyr.container, config.classes.type.replace('{0}', 'video'), true);
}
// If there's no autoplay attribute, assume the video is stopped and add state class
_toggleClass(plyr.container, config.classes.stopped, config.autoplay);
@ -2176,7 +2182,7 @@
// Show the player controls in fullscreen mode
function _toggleControls(toggle) {
if (!config.hideControls) {
if (!config.hideControls || plyr.type === 'audio') {
return;
}
var delay = false,