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