add OxFullscreen class to video player
This commit is contained in:
parent
bfac98643d
commit
fea1eed168
2 changed files with 2 additions and 1 deletions
|
@ -243,7 +243,6 @@ Ox.VideoElement = function(options, self) {
|
||||||
self.video.pause();
|
self.video.pause();
|
||||||
self.video.currentTime = 0;
|
self.video.currentTime = 0;
|
||||||
}
|
}
|
||||||
Ox.print('?????', self.items[self.currentItem].$videos)
|
|
||||||
self.$video = self.items[self.currentItem].$videos[part].css(css).show();
|
self.$video = self.items[self.currentItem].$videos[part].css(css).show();
|
||||||
self.video = self.$video[0];
|
self.video = self.$video[0];
|
||||||
!self.paused && self.video.play();
|
!self.paused && self.video.play();
|
||||||
|
|
|
@ -2037,6 +2037,7 @@ Ox.VideoPlayer = function(options, self) {
|
||||||
top: self.absoluteOffset.top - parentOffset.top
|
top: self.absoluteOffset.top - parentOffset.top
|
||||||
};
|
};
|
||||||
that.detach()
|
that.detach()
|
||||||
|
.addClass('OxFullscreen')
|
||||||
.css({
|
.css({
|
||||||
left: self.absoluteOffset.left + 'px',
|
left: self.absoluteOffset.left + 'px',
|
||||||
top: self.absoluteOffset.top + 'px',
|
top: self.absoluteOffset.top + 'px',
|
||||||
|
@ -2075,6 +2076,7 @@ Ox.VideoPlayer = function(options, self) {
|
||||||
setSizes(function() {
|
setSizes(function() {
|
||||||
self.exitFullscreen = false;
|
self.exitFullscreen = false;
|
||||||
that.detach()
|
that.detach()
|
||||||
|
.removeClass('OxFullscreen')
|
||||||
.css({
|
.css({
|
||||||
left: self.relativeOffset.left + 'px',
|
left: self.relativeOffset.left + 'px',
|
||||||
top: self.relativeOffset.top + 'px',
|
top: self.relativeOffset.top + 'px',
|
||||||
|
|
Loading…
Reference in a new issue