merge
This commit is contained in:
commit
52b10e6f14
1 changed files with 18 additions and 11 deletions
|
@ -41,6 +41,7 @@ Ox.load('UI', {
|
|||
paused: options.paused,
|
||||
position: options['in'],
|
||||
poster: '/' + options.item + '/' + '128p' + options['in'] +'.jpg',
|
||||
resolution: pandora.user.ui.videoResolution,
|
||||
showMarkers: false,
|
||||
showMilliseconds: 0,
|
||||
timeline: '/' + options.item + '/' + 'timeline16p.png',
|
||||
|
@ -49,7 +50,16 @@ Ox.load('UI', {
|
|||
width: document.width
|
||||
})
|
||||
.bindEvent({
|
||||
position: function(data) {
|
||||
playing: checkRange,
|
||||
position: checkRange,
|
||||
resolution: function(data) {
|
||||
pandora.api.setUI({'videoResolution': data.resolution});
|
||||
},
|
||||
})
|
||||
);
|
||||
Ox.UI.hideLoadingScreen();
|
||||
|
||||
function checkRange(data) {
|
||||
if(data.position < options['in']
|
||||
|| data.position > options.out) {
|
||||
if(!pandora.player.options('paused')) {
|
||||
|
@ -60,9 +70,6 @@ Ox.load('UI', {
|
|||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
);
|
||||
Ox.UI.hideLoadingScreen();
|
||||
});
|
||||
return that;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue