Forums
Status bar does not update while video is playing - Printable Version

+- Forums (http://mitov.com/forum)
+-- Forum: VCL Components (/forum-6.html)
+--- Forum: VideoLab (/forum-19.html)
+--- Thread: Status bar does not update while video is playing (/thread-1287.html)



Status bar does not update while video is playing - CapeCodGunny - 12-25-2012 01:25 AM

I'm using Delphi 2010 and Basic Video with VLDSVideoPlayer and VLImageDisplay.

I have noticed that the statusbar does not update while a video is playing. I have coded the status bar to display the current time as HH:MM:SS. I have noticed that when a video is playing the current time on the status bar stops incrementing.

When I click the "Pause" button the statusbar displays the current time as expected, incrementing each second. When I click the "Resume" button the current time on the statusbar stops incrementing again.

How can I keep the status bar time updated while a video is playing?


RE: Status bar does not update while video is playing - Dave - 12-25-2012 05:59 AM

Are you using StatusBar simpletext?

Had something similar long time ago and the way i fixed it was to use/define panels on the statusbar and use something like StatusBar1->Panels->Items[0]->Text = "00:00";

Regards,
Dave


RE: Status bar does not update while video is playing - CapeCodGunny - 12-26-2012 06:46 AM

(12-25-2012 05:59 AM)Dave Wrote:  Are you using StatusBar simpletext?

Had something similar long time ago and the way i fixed it was to use/define panels on the statusbar and use something like StatusBar1->Panels->Items[0]->Text = "00:00";

Regards,
Dave
I'm using StatusBar panels and it works perfectly except when a video is playing. It has to do with the internal process that displays the video. It appears as though the video render process is CPU intensive and doesn't like to time slice with other processes.