toufik 2 Posted February 16, 2021 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 Posted February 16, 2021 (edited) 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 February 16, 2021 by Guest Share this post Link to post
toufik 2 Posted February 17, 2021 @emailx45 thank you its work thanks a lot ^^ Share this post Link to post