Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 29 lines (21 sloc) 0.98 kB
a16ce19 Reenabled offset deeplinking. ( Fixes #97 )
Johan Bichel Lindegaard authored
1
2 ###
3 if @getStatus().duration is null
4 #alert(@getStatus().src)
5
6 if @playAttemptCount <= 9
7 @playAttemptCount += 1
8
9 # try to trigger seeked event setting currenTime manually
10 #log.warn "Player: duration (#{@getStatus().duration}) is none trying to force seeked event in 500ms"
11
12 #jQuery('#jplayer').data('jPlayer').status.duration = 3000
13 setTimeout(jQuery('#jplayer').data('jPlayer').status.duration = 3000, 500)
14 setTimeout(jQuery('#jplayer').data('jPlayer').status.currentTime = 0.5, 500)
15 log.warn "Duration is #{@getStatus().duration}"
16
17 #triggerSeekedHack = () =>
18 # status = @getStatus()
19 # status.currentTime = 0.5
20 # #status.duration = 2000
21 # jQuery.data(@el, 'jPlayer', status)
22
23 #@el.jPlayer("playHead", 1)
24
25 log.warn "Player: duration (#{@getStatus().duration}) is none retrying play in 600ms | Tried #{@playAttemptCount} of 10 times"
26 setTimeout(@playOnIntent(), 600)
27
28 else
29 ###
Something went wrong with that request. Please try again.