collab-project / videojs-record

video.js plugin for recording audio/video/image files
https://collab-project.github.io/videojs-record
MIT License
1.39k stars 314 forks source link

recodedData duration less than player.record().getDuration in safari #597

Open tonynguyenit18 opened 3 years ago

tonynguyenit18 commented 3 years ago

Description

on finishRecord event, I convert player.recordedData to a url to play in a video tag (or any video player or download it to local machine). But the video has duration is less than player.record().getDuration

Steps to reproduce

Error output

No error

Additional Information

Please include any additional information necessary here. Including the following:

versions

videojs

what version of videojs does this occur with? "video.js": "^7.11.4",

browsers

Safari Version 14.1.1 (15611.2.7.1.6, 15611)

OSes

Mac OS

thijstriemstra commented 3 years ago

@tonynguyenit18 can you reproduce this without the timeSlice option?

tonynguyenit18 commented 3 years ago

@thijstriemstra Without timeSlice, this issue is gone, but there is another issue occur is player.on("timestamp"....) is not executed.