forked from 0x2620/pandora
fix a bug regarding opening the tv program in video view when the video position for that item had never been set before
This commit is contained in:
parent
b7c0fde5e4
commit
8b97650936
1 changed files with 14 additions and 8 deletions
|
@ -53,14 +53,20 @@ pandora.ui.tv = function() {
|
||||||
pandora.UI.set('videoMuted', data.muted);
|
pandora.UI.set('videoMuted', data.muted);
|
||||||
},
|
},
|
||||||
open: function() {
|
open: function() {
|
||||||
var set = {
|
var item = result.data.item,
|
||||||
item: result.data.item,
|
position = $player.options('position'),
|
||||||
itemView: pandora.user.ui.videoView,
|
set = {
|
||||||
page: ''
|
item: item,
|
||||||
};
|
itemView: pandora.user.ui.videoView,
|
||||||
set[
|
page: ''
|
||||||
'videoPoints.' + result.data.item + '.position'
|
};
|
||||||
] = $player.options('position');
|
if (pandora.user.ui.videoPoints[item]) {
|
||||||
|
set['videoPoints.' + item + '.position'] = position;
|
||||||
|
} else {
|
||||||
|
set['videoPoints.' + item] = {
|
||||||
|
'in': 0, out: 0, position: position
|
||||||
|
};
|
||||||
|
}
|
||||||
pandora.UI.set(set);
|
pandora.UI.set(set);
|
||||||
},
|
},
|
||||||
resolution: function(data) {
|
resolution: function(data) {
|
||||||
|
|
Loading…
Reference in a new issue