cms icon indicating copy to clipboard operation
cms copied to clipboard

fix: show fallback title on seekbar tooltip if segment title is missing

Open Harsheetsharma opened this issue 8 months ago • 0 comments

Description

This PR fixes the issue where the seekbar tooltip was only showing the timestamp (e.g., 0:04) but missing the title for some courses like "Web3".

Root Cause

In VideoPlayerSegment.tsx, the tooltip text was built using:

this.write(`${time} - ${segmentName}`);

and I have added 
this.write(segmentName? `${time} - ${segmentName}`:`${time}`);

Harsheetsharma avatar Jul 03 '25 11:07 Harsheetsharma