support urls like '0xdb.org/Inception/1::'

This commit is contained in:
rlx 2011-08-24 21:57:07 +00:00
commit 7f426d42c1
2 changed files with 21 additions and 6 deletions

View file

@ -90,12 +90,13 @@ pandora.URL = (function() {
view = view ? view[0]
: position ? pandora.user.ui.videoView
: pandora.user.ui.itemView;
pandora.UI.set({
pandora.UI.set(Ox.extend({
section: 'items',
item: item,
itemView: view
});
Ox.print('POSITION', position)
}, ['player', 'timeline'].indexOf(view) > -1 ? {
videoView: view
} : {}));
if (position) {
split[length - 1] = position[0].split('-').map(function(point, i) {
// fixme: this is duplicated, see Ox.VideoPlayer() parsePositionInput()