forked from 0x2620/oxjs
update VideoPanelPlayer
This commit is contained in:
parent
acc7971b96
commit
91c69d5d23
3 changed files with 100 additions and 251 deletions
|
|
@ -1698,6 +1698,9 @@ Ox.VideoPlayer = function(options, self) {
|
|||
src: getVolumeImageURL()
|
||||
});
|
||||
self.$volumeValue.html(self.options.muted ? 0 : Math.round(self.options.volume * 100));
|
||||
that.triggerEvent('volume', {
|
||||
volume: self.options.volume
|
||||
});
|
||||
}
|
||||
|
||||
function showControls() {
|
||||
|
|
@ -1924,6 +1927,9 @@ Ox.VideoPlayer = function(options, self) {
|
|||
self.$volumeValue && self.$volumeValue.html(
|
||||
self.options.muted ? 0 : Math.round(self.options.volume * 100)
|
||||
);
|
||||
that.triggerEvent('muted', {
|
||||
muted: self.options.muted
|
||||
});
|
||||
}
|
||||
|
||||
function togglePaused(from) {
|
||||
|
|
@ -1980,6 +1986,9 @@ Ox.VideoPlayer = function(options, self) {
|
|||
marker.animate(self.posterMarkerCSS[position], 250);
|
||||
});
|
||||
}
|
||||
that.triggerEvent('scale', {
|
||||
scale: self.options.scaleToFill ? 'fill' : 'fit'
|
||||
});
|
||||
}
|
||||
|
||||
function toggleSize() {
|
||||
|
|
@ -1997,6 +2006,7 @@ Ox.VideoPlayer = function(options, self) {
|
|||
if (key == 'fullscreen') {
|
||||
toggleFullscreen();
|
||||
} else if (key == 'height' || key == 'width') {
|
||||
Ox.print('!!!!!!!!!!!!!', key, value)
|
||||
setSizes();
|
||||
} else if (key == 'in' || key == 'out') {
|
||||
self.options.paused && setMarkers();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue