we are trying to implement frame accurate seeking, generic for any HLS video.
most of the examples in INTERNET assuming 29.9/25 frame rate ps.
Like to know if can obtain fps from HLS.js .
HLS.js respects transport stream frame rate (which could be fixed/variable)
one easy way to get the frame rate could be to listen to FRAG_PARSING_DATA
onFragParsingData(data) {
if (data.type === 'video') {
let fps = data.nb/(data.endPTS - data.startPTS);
}
}
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Most helpful comment
HLS.js respects transport stream frame rate (which could be fixed/variable)
one easy way to get the frame rate could be to listen to FRAG_PARSING_DATA