no need to pass exact frame to getSequence

This commit is contained in:
rolux 2012-06-15 14:44:46 +00:00
parent f9df691c24
commit bc7e7c4f88

View file

@ -634,10 +634,10 @@ pandora.getItemFind = function(find) {
pandora.getItemIdAndPosition = function() { pandora.getItemIdAndPosition = function() {
var selected, ret, ui = pandora.user.ui; var selected, ret, ui = pandora.user.ui;
function getIdAndPositionByClipId(clipId) { function getIdAndPositionByClipId(clipId) {
var fps = 25, split = clipId.replace('-', '/').split('/'); var split = clipId.replace('-', '/').split('/');
return { return {
id: split[0], id: split[0],
position: Math.ceil(parseFloat(split[1]) * fps) / fps position: parseFloat(split[1])
}; };
} }
function getIdAndPositionByItemId(itemId) { function getIdAndPositionByItemId(itemId) {