forked from 0x2620/pandora
correctly save videoMuted and videoVolume ui settings
This commit is contained in:
parent
64bac326eb
commit
76c4c7d1c2
1 changed files with 6 additions and 2 deletions
|
@ -188,7 +188,7 @@ pandora.ui.item = function() {
|
||||||
} : pandora.site.user.ui.itemFind);
|
} : pandora.site.user.ui.itemFind);
|
||||||
},
|
},
|
||||||
muted: function(data) {
|
muted: function(data) {
|
||||||
pandora.UI.set('muted', data.muted);
|
pandora.UI.set('videoMuted', data.muted);
|
||||||
},
|
},
|
||||||
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);
|
||||||
|
@ -206,7 +206,7 @@ pandora.ui.item = function() {
|
||||||
pandora.UI.set('showControls', data.showControls);
|
pandora.UI.set('showControls', data.showControls);
|
||||||
},
|
},
|
||||||
volume: function(data) {
|
volume: function(data) {
|
||||||
pandora.UI.set('volume', data.volume);
|
pandora.UI.set('videoVolume', data.volume);
|
||||||
},
|
},
|
||||||
pandora_showannotations: function(data) {
|
pandora_showannotations: function(data) {
|
||||||
pandora.$ui.player.options({showAnnotations: data.value});
|
pandora.$ui.player.options({showAnnotations: data.value});
|
||||||
|
@ -246,6 +246,7 @@ pandora.ui.item = function() {
|
||||||
video: video,
|
video: video,
|
||||||
videoRatio: result.data.videoRatio,
|
videoRatio: result.data.videoRatio,
|
||||||
videoSize: pandora.user.ui.videoSize,
|
videoSize: pandora.user.ui.videoSize,
|
||||||
|
volume: pandora.user.ui.videoVolume,
|
||||||
width: pandora.$ui.document.width() - pandora.$ui.mainPanel.size(0) - 1
|
width: pandora.$ui.document.width() - pandora.$ui.mainPanel.size(0) - 1
|
||||||
}).bindEvent({
|
}).bindEvent({
|
||||||
find: function(data) {
|
find: function(data) {
|
||||||
|
@ -254,6 +255,9 @@ pandora.ui.item = function() {
|
||||||
operator: '&'
|
operator: '&'
|
||||||
} : pandora.site.user.ui.itemFind);
|
} : pandora.site.user.ui.itemFind);
|
||||||
},
|
},
|
||||||
|
muted: function(data) {
|
||||||
|
pandora.UI.set('videoMuted', data.muted);
|
||||||
|
},
|
||||||
points: function(data) {
|
points: function(data) {
|
||||||
pandora.UI.set('videoPoints.' + pandora.user.ui.item, {
|
pandora.UI.set('videoPoints.' + pandora.user.ui.item, {
|
||||||
'in': data['in'],
|
'in': data['in'],
|
||||||
|
|
Loading…
Reference in a new issue