forked from 0x2620/pandora
deal with two-value (in/out) video span (fixes #442)
This commit is contained in:
parent
942a7fe3fb
commit
9bc36f5634
1 changed files with 5 additions and 2 deletions
|
@ -91,8 +91,11 @@ pandora.URL = (function() {
|
|||
if (Ox.isArray(state.span)) {
|
||||
set['videoPoints.' + state.item] = {
|
||||
annotation: '',
|
||||
'in': state.span[1] || 0,
|
||||
out: Math.max(state.span[1] || 0, state.span[2] || 0),
|
||||
'in': state.span[state.span.length - 2] || 0,
|
||||
out: state.span.length == 1 ? 0 : Math.max(
|
||||
state.span[state.span.length - 2],
|
||||
state.span[state.span.length - 1]
|
||||
),
|
||||
position: state.span[0]
|
||||
};
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue