NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Docker amd64 v
1 2 3 4 5 … 10 Next »
Web player elapsed time double-counts seek offset (v7.1.1, transcoded HLS)

 
  • 0 Vote(s) - 0 Average
Web player elapsed time double-counts seek offset (v7.1.1, transcoded HLS)
TheFiz
Offline

Junior Member

United States
Posts: 1
Threads: 1
Joined: Oct 2026
#1
1 hour ago (This post was last modified: 1 hour ago by TheFiz.)
I've identified what appears to be a bug in the NextPVR web player's elapsed-time display when seeking within a recording using transcoded HLS playback.

Environment
  • NextPVR 7.1.1.260616
  • Docker: nextpvr/nextpvr_amd64:stable
  • Firefox on Windows
  • MPEG-2 TS recording, approximately 58 minutes
  • Playback through recording.transcode.m3u8

Issue
After seeking within a recording, the elapsed-time indicator on the left side of the timeline shows a position significantly ahead of the actual playback position.
For example, seeking to approximately 10 minutes can result in the elapsed-time indicator showing approximately 20 minutes, even though playback is occurring at the correct location.

Steps to reproduce
  1. Open a recorded .ts program in the NextPVR web player.
  2. Seek to approximately 10 minutes into the recording.
  3. Allow transcoded playback to resume.
  4. Observe that the elapsed-time label is ahead of the actual recording position.

Suspected cause
In /app/wwwroot/player.html, around line 1593, the playback position is calculated as:
var time = player.currentTime + startSeconds;

However, the displayed position is subsequently calculated using:
var position = display(time + startSeconds);

Since time already includes startSeconds, the seek offset is effectively added twice when formatting the elapsed-time label.
The internal lastPosition value uses time directly, which appears to be correct.

Tested fix
Changing:
var position = display(time + startSeconds);

to:
var position = display(time);

corrected the elapsed-time display in my local testing.

After applying this change, I sought to approximately 10 minutes and captured the following values from Firefox DevTools:
player.currentTime = 1.923291
startSeconds       = 601.414791
lastPosition       = 603
displayedTime      = 00:10:03

This is consistent with the actual playback position:
1.923291 + 601.414791 = 603.338082 seconds

With the original expression, these same values would produce 1204.75 seconds (20:05) instead of 10:03.

Verification
After applying the one-line correction and refreshing the web player, the elapsed-time indicator correctly reflected the recording position during seeking. I also compared commercial boundaries against recording-relative timestamps, which were consistent after the correction.

The modification was made directly inside the running Docker container and is not a persistent fix.
I've confirmed this behavior with Firefox and transcoded HLS playback. I haven't tested other browsers or playback methods.
It appears the display calculation simply needs to use display(time) rather than adding startSeconds again.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 56,971
Threads: 1,003
Joined: May 2006
#2
55 minutes ago
I am pretty sure this was already fixed for the upcoming 7.20 in this thread https://forums.nextpvr.com/showthread.ph...#pid610875 There are multiple changes to playback not just that one.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  IPTV only one stream can be recorded at a time rojerki 2 2,435 2022-05-22, 11:10 AM
Last Post: rojerki
  Time is incorrect inside logs of NextPVR inside docker container janoonk 4 3,948 2021-01-28, 01:41 PM
Last Post: janoonk
  What Time Does the "Delete Missing Recording" Maintenance Run? pkscout 12 6,931 2020-09-20, 05:32 PM
Last Post: pkscout

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode