Jump to content
toufik

how to store a video location to database and restore to play it in tMediaPlayer ?

Recommended Posts

hello every one ..............how to store a video location to database and restore  to play it in tMediaPlayer ? thank you   

Share this post


Link to post
Guest
1 hour ago, toufik said:

hello every one ..............how to store a video location to database and restore  to play it in tMediaPlayer ? thank you   

In the easiest and most usual way: just create a field with a size appropriate to your needs, and when using, for example, OpenDialog or FIleOpenDialog to find your video file, if so, save this path in your table.

Quote

if OpenDialog.Execute then

    myTable.FieldByName ('myVideoPathFile'). asString: = OpenDialog.FileName;

// later....

Player.MediaFileName ;=  myTable.FieldByName('xxxx').asString;  or any other way - you decide!

Now, you can use any technique you want to "shorten" the path + file names, compress the string, etc ...,

It all depends on how you get the "thing"!

 

There is no single recipe, you make yours!

 

Hug

Edited by Guest

Share this post


Link to post
Guest

not for that!

 

hug

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

×