Closed StephenVinuya closed 9 months ago
facing same issue
facing same issue
You can use the ts-ebml plugin to inject duration: https://collab-project.github.io/videojs-record/#/plugins/ts-ebml
The ffmpeg.wasm plugin could work as well: https://collab-project.github.io/videojs-record/#/plugins/ffmpeg.wasm
Description
I'm working on an application, where we upload parts of video that are being recorded on video.js-record every n seconds timestamp. The problem is the video duration is always 0 with no end time specified when I played the video and it will just continuously play till I reach the end of the video.
I don't know how to integrate the ts-ebml.js plugin in this scenario, cause the finishConvert doesn't fire on every timestamp event
Steps to reproduce
Upload the timestamp recordedData to AWS s3 multipart upload.
Results
Expected
The video end time when watching the video should be there
Actual
See image, there's no duration/end time specified, and progressbar of the video is always at the end part.
Error output
If there are any errors at all, please include them here.
Additional Information
Please include any additional information necessary here. Including the following:
versions
videojs
video.js 7.2.0 video.js record 4.6.0
browsers
Chrome, firefox, safari
OSes
Windows 10