Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

startTime = Video - startTime #22

Open
WebsheetPlugin opened this issue Feb 13, 2024 · 1 comment
Open

startTime = Video - startTime #22

WebsheetPlugin opened this issue Feb 13, 2024 · 1 comment

Comments

@WebsheetPlugin
Copy link

WebsheetPlugin commented Feb 13, 2024

vid_3bsplmwlsji9pjs.mp4

First of all - Amazing work with Plugin and Happy Lunar Year to You!

Overall, the plugin works well for all your methods except when trying to use another startTime than 0 combined with a Video element with mp4.

Added like this:
<video playsinline="" autoplay="" loop="" type="video/mp4" src="https://ucarecdn.com/fcf8d557-b204-4bc0-82ef-dd0c69061c0c/anime-roman-senator.mp4" class="bl-videoelem" preload="auto"></video>

I noticed a weird behavior, which probably suggests some logical issue. But first, let me explain the issue. When I produce a Video with createSingleVideo, and I set startTime=14s, then the Video stops showing for the last 14s. Which you can see in the attached Video. (The BG Video disappears).

But when I set startTime=3s, then the Video stops showing for the last 3s.

The wanted behavior should be that the produced Video displays from startTime to startTime + duration, while the underlying Video is being played accordingly, and does not stop startTime before end time.

I noticed the same behavior for your other two main methods: multiVideo and chunkVideo
I tried to debug your code, but I am kinda lost, I understand that you are using _targetFrameCount and _frameCount, but I can't find where(if) you handle the Video Capturing.

@WebsheetPlugin
Copy link
Author

WebsheetPlugin commented Feb 13, 2024

I was able to make it work for my case by setting a high Value for endTime manualy. Please see the image to see what I refer to.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant