save video points between views
This commit is contained in:
parent
4da5a6ca84
commit
dee49e3a46
2 changed files with 8 additions and 5 deletions
|
@ -299,6 +299,9 @@ pandora.ui.item = function() {
|
||||||
muted: function(data) {
|
muted: function(data) {
|
||||||
pandora.UI.set('muted', data.muted);
|
pandora.UI.set('muted', data.muted);
|
||||||
},
|
},
|
||||||
|
position: function(data) {
|
||||||
|
pandora.UI.set('videoPoints.' + pandora.user.ui.item + '.position', data.position);
|
||||||
|
},
|
||||||
resizeannotations: function(data) {
|
resizeannotations: function(data) {
|
||||||
pandora.UI.set('annotationsSize', data.annotationsSize);
|
pandora.UI.set('annotationsSize', data.annotationsSize);
|
||||||
},
|
},
|
||||||
|
@ -370,7 +373,7 @@ pandora.ui.item = function() {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
position: function(data) {
|
position: function(data) {
|
||||||
pandora.UI.set('videoPoints.' + pandora.user.ui.item + '|position', data.position);
|
pandora.UI.set('videoPoints.' + pandora.user.ui.item + '.position', data.position);
|
||||||
},
|
},
|
||||||
resize: function(data) {
|
resize: function(data) {
|
||||||
Ox.print('RESIZE!!', data.size)
|
Ox.print('RESIZE!!', data.size)
|
||||||
|
|
|
@ -20,6 +20,10 @@ pandora.ui.videoPreview = function(data) {
|
||||||
})
|
})
|
||||||
.bindEvent({
|
.bindEvent({
|
||||||
click: function(event) {
|
click: function(event) {
|
||||||
|
pandora.UI.set(
|
||||||
|
'videoPoints.' + data.id,
|
||||||
|
{'in': 0, out: 0, position: event.position}
|
||||||
|
);
|
||||||
if (pandora.user.ui.item && ['video', 'timeline'].indexOf(pandora.user.ui.itemView) > -1) {
|
if (pandora.user.ui.item && ['video', 'timeline'].indexOf(pandora.user.ui.itemView) > -1) {
|
||||||
pandora.$ui[
|
pandora.$ui[
|
||||||
pandora.user.ui.itemView == 'video' ? 'player' : 'editor'
|
pandora.user.ui.itemView == 'video' ? 'player' : 'editor'
|
||||||
|
@ -27,10 +31,6 @@ pandora.ui.videoPreview = function(data) {
|
||||||
position: event.position
|
position: event.position
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
pandora.UI.set(
|
|
||||||
'videoPoints.' + data.id,
|
|
||||||
{'in': 0, out: 0, position: event.position}
|
|
||||||
);
|
|
||||||
pandora.UI.set({
|
pandora.UI.set({
|
||||||
item: data.id,
|
item: data.id,
|
||||||
itemView: pandora.user.ui.videoView
|
itemView: pandora.user.ui.videoView
|
||||||
|
|
Loading…
Reference in a new issue