These are chat archives for jwplayer/jwplayer

23rd
May 2015
MJ Rossetti
@s2t2
May 23 2015 23:10
hi, i'm hoping this is an appropriate place for this question... getDuration() returns the proper result if placed within an onTime() function. great! but presumably, the duration of the video does not change and therefore does not need to be looked up iteratively. is there a preferred way to non-iteratively look up the duration?
MJ Rossetti
@s2t2
May 23 2015 23:23
i've posted code here to illustrate the question better. i think i'm really just looking for a way to separate initial vs subsequent iterations of onTime() https://gist.github.com/s2t2/45460c06581798ba6e94#file-question-js-L5