1
0
Fork 0
forked from 0x2620/oxjs

update VideoPanelPlayer

This commit is contained in:
rlx 2011-08-17 19:34:34 +00:00
commit 91c69d5d23
3 changed files with 100 additions and 251 deletions

View file

@ -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();