On Sun, 27 Oct 2024 14:51:04 +0100, Bo Berglund via lazarus
<lazarus@lists.lazarus-ide.org> wrote:

>Question:
>---------
>How should I proceed to update the video length while playing it in the player?
>
>It affects both the length displayed on screen as well as the progress bar
>showing where the current playback position is located.
>
>Should I set up a timer and use that to constantly read the video length (if it
>is being updated by the library) and set the limits and visuals accordingly?
>
>Or is there some means of handling it using some internal callback, event or
>similar?
>
>Unfortunately it was a while since I worked on the code so I will need some
>start time to get re-familiarized....
>

UPDATE:
-------

I tested with the VLC Video player (on which video handling functions PasLibVLC
relies) by opening a running download target file in ts format while it was
still being written.

The VLC Video player read the video length upon starting and once it reached
playing to that time it just exited!
That is when the file at that time held a lot more content but past the original
ending timestamp...

So I guess (before testing actual coding) that the VLC library will not supply
such a functionality as dynamically updating a ts file length...


-- 
Bo Berglund
Developer in Sweden

-- 
_______________________________________________
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus

Reply via email to