forked from 0x2620/oxjs
fix event handlers and split panel resize event
This commit is contained in:
parent
3f90e96c3a
commit
da9e5dbb29
27 changed files with 722 additions and 118 deletions
|
|
@ -182,9 +182,9 @@ Ox.VideoPanelPlayer = function(options, self) {
|
|||
self.options.annotationsSize - 16 - 1;
|
||||
}
|
||||
|
||||
function resizeAnnotations(event, data) {
|
||||
function resizeAnnotations(data) {
|
||||
// called on annotations resize
|
||||
self.options.annotationsSize = data;
|
||||
self.options.annotationsSize = data.size;
|
||||
self.$video.options({
|
||||
width: getPlayerWidth()
|
||||
});
|
||||
|
|
@ -193,22 +193,22 @@ Ox.VideoPanelPlayer = function(options, self) {
|
|||
});
|
||||
}
|
||||
|
||||
function resizeendAnnotations(event, data) {
|
||||
self.options.annotationsSize = data;
|
||||
function resizeendAnnotations(data) {
|
||||
self.options.annotationsSize = data.size;
|
||||
that.triggerEvent('resizeannotations', {
|
||||
annotationsSize: self.options.annotationsSize
|
||||
});
|
||||
}
|
||||
|
||||
function resizeElement(event, data) {
|
||||
function resizeElement(data) {
|
||||
// called on browser toggle
|
||||
self.options.height = data;
|
||||
self.options.height = data.size;
|
||||
self.$video.options({
|
||||
height: getPlayerHeight()
|
||||
});
|
||||
}
|
||||
|
||||
function resizePanel(event, data) {
|
||||
function resizePanel(data) {
|
||||
// called on annotations toggle
|
||||
self.$video.options({
|
||||
width: getPlayerWidth()
|
||||
|
|
@ -218,7 +218,7 @@ Ox.VideoPanelPlayer = function(options, self) {
|
|||
});
|
||||
}
|
||||
|
||||
function setPosition(event, data) {
|
||||
function setPosition(data) {
|
||||
self.options.position = data.position;
|
||||
//self.$video.position(self.options.position);
|
||||
self.$timeline.options({
|
||||
|
|
@ -226,7 +226,7 @@ Ox.VideoPanelPlayer = function(options, self) {
|
|||
});
|
||||
}
|
||||
|
||||
function toggleAnnotations(event, data) {
|
||||
function toggleAnnotations(data) {
|
||||
self.options.showAnnotations = !data.collapsed;
|
||||
self.$video.options({
|
||||
height: getPlayerHeight()
|
||||
|
|
@ -236,7 +236,7 @@ Ox.VideoPanelPlayer = function(options, self) {
|
|||
});
|
||||
}
|
||||
|
||||
function toggleControls(event, data) {
|
||||
function toggleControls(data) {
|
||||
self.options.showControls = !data.collapsed;
|
||||
self.$video.options({
|
||||
height: getPlayerHeight()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue