[Lazarus] Using PasLibVLC to play video files - how to update duration?
Bo Berglund
bo.berglund at gmail.com
Sat Nov 9 16:51:32 CET 2024
On Sun, 27 Oct 2024 18:18:20 +0100, Bo Berglund via lazarus
<lazarus at lists.lazarus-ide.org> wrote:
>On Sun, 27 Oct 2024 14:51:04 +0100, Bo Berglund via lazarus
><lazarus at 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...
>
So I got no reply on ths question...
Can someone please suggest a better location for asking? Will the Lazarus Forum
be better or else where can I get feedbacxk from trhose "in the know"?
Meanwhile I have been trying to use KODI as a playback channel for the video
being downloaded and that would in fact continue plaing across the video length
at the start of playing. But it will not function correctly when doing skips
back or forth whan you have played across the start length position...
As I stated above the VLC Video Player does not handle a ts file which is
growing in size when it plays it. When it reaches the initial length of the
video it just quits even if the video at that time is much longer...
--
Bo Berglund
Developer in Sweden
More information about the lazarus
mailing list