cms
cms copied to clipboard
fix: show fallback title on seekbar tooltip if segment title is missing
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}`);