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);
|
||||
},
|
||||
open: function() {
|
||||
var set = {
|
||||
item: result.data.item,
|
||||
itemView: pandora.user.ui.videoView,
|
||||
page: ''
|
||||
};
|
||||
set[
|
||||
'videoPoints.' + result.data.item + '.position'
|
||||
] = $player.options('position');
|
||||
var item = result.data.item,
|
||||
position = $player.options('position'),
|
||||
set = {
|
||||
item: item,
|
||||
itemView: pandora.user.ui.videoView,
|
||||
page: ''
|
||||
};
|
||||
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);
|
||||
},
|
||||
resolution: function(data) {
|
||||
|
|
Loading…
Reference in a new issue