Jump to content
toufik

play all videos in one folder delphi?

Recommended Posts

hello every one 
 I want to play videos one by one , when one finished the second one start and that on ,like slidshow but with videos not pictures ,

using tMediaPlayer ,how can I approach that ? or is there a way to detect when start and end of a  video ?thank you 

Edited by toufik

Share this post


Link to post

VCL's TMediaPlayer has an OnNotify event, which you can use to detect the end of playback. Load the video file paths into a list, start playing the 1st file, and use OnNotify to play the next file in the list, repeating until the list is finished.

  • Like 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×