use Ox.LoadingIcon in Ox.VideoPlayer, fixes #798

This commit is contained in:
j 2012-05-25 11:37:08 +02:00
parent ad3b50cb82
commit d49847593b

View file

@ -415,12 +415,9 @@ Ox.VideoPlayer = function(options, self) {
---------------------------------------------------------------------------- ----------------------------------------------------------------------------
*/ */
self.$loadingIcon = $('<img>') self.$loadingIcon = Ox.LoadingIcon()
.addClass('OxLoadingIcon OxVideo') .appendTo(self.$videoContainer)
.attr({ .start();
src: Ox.UI.getImageURL('symbolLoadingAnimated', 'modern')
})
.appendTo(self.$videoContainer);
if (self.options.showIcon || self.options.showIconOnLoad) { if (self.options.showIcon || self.options.showIconOnLoad) {
self.$playIcon = $('<img>') self.$playIcon = $('<img>')
@ -1600,10 +1597,7 @@ Ox.VideoPlayer = function(options, self) {
} }
function hideLoadingIcon() { function hideLoadingIcon() {
self.$loadingIcon.hide().attr({ self.$loadingIcon.hide().stop();
src: Ox.UI.getImageURL('symbolLoading')
.replace('/classic/', '/modern/')
});
} }
function hideMarkers() { function hideMarkers() {
@ -2122,10 +2116,7 @@ Ox.VideoPlayer = function(options, self) {
} }
function showLoadingIcon() { function showLoadingIcon() {
self.$loadingIcon.attr({ self.$loadingIcon.start().show();
src: Ox.UI.getImageURL('symbolLoadingAnimated')
.replace('/classic/', '/modern/')
}).show();
} }
function showVolume() { function showVolume() {