Ticket #463 (closed defect: fixed)

Opened 12 months ago

Last modified 12 months ago

Duration on pause is not shown correctly

Reported by: paul Owned by: paul
Priority: critical Milestone: OVA for JW5 (v1.0.1)
Component: OVA for JW Player 5 Version: OVA for JW Player 5 (trunk)
Keywords: Cc:
Forum thread:

Description

When a JW 5 playlist clip does not have a duration specified, when the user pauses, the current time is shown as 0. See:

 http://www.longtailvideo.com/support/forums/open-video-ads/ova-for-jw-player/26852/wrong-time-counter-on-pause

And:

 http://localhost/support/me/controlbar-time-test/jwplayer59.html

Change History

comment:1 Changed 12 months ago by paul

Looks to have started happening after 1.0.0 RC7 (on a 5.7 player).

comment:2 Changed 12 months ago by paul

  • Status changed from new to closed
  • Resolution set to fixed

Issue is localised to ControlbarComponentV4 based control bars - so only the default V4 control bar.

OVA calls ControlbarComponentV4.block(true|false) to lock/unlock the V4 control bar. It does this a number of times including when the pause button is hit etc. for safety during player state changes (to ensure that the control bar is always unlocked when needed).

Problem is, ControlbarComponentV4.block() calls timeHandler() but doesn't pass the current control bar time - this results in timeHandler() using 0 as the current position in the control bar. That's why 0 shows on pause, but the stream resumes ok when play is hit again.

Added logic to OVA to ensure that the unlock is only called on V4 control bars when absolutely necessary. Not great for safety, but ensures that unlock is only called at the start of the stream at best.

Note: See TracTickets for help on using tickets.