Play avi file from a stream

Hello Experts!
    Please help me how to play avi file from database, i need play on memory stream not have to save to harddisk.
    i known there free TMediaPlayerMemoryFile (http://www.wilsonc.demon.co.uk/misccomponents.htm) but it do not come with any demos.
    Very thanks if post with full sample!
j88Asked:
Who is Participating?
 
2266180Connect With a Mentor Commented:
I transformed the project into a component + demo.
http://www.ciuly.com/delphi/multimedia/mciStreamPlayer/index.html
it took me a few hours. I have to get back to paid projects :) I'll add more to it tomorrow.
0
 
2266180Commented:
as I see there, he is using MCI to play from a stream, however, at first glance, I didn't see exactly how to use it either.
but, you can use one of my 2 examples from here: http://www.ciuly.com/delphi/multimedia/index.html
you have an MCI solution, which does not requre extra stuff, and a DSPack solution, which of course requires the DSPack components.
you can easily adapt whichever solution you prefer, using a blobstream for example. (depends though how the multimedia is stored in the DB)
0
 
j88Author Commented:
Hello ciuly!
   Thank you for quick reply and your demos, i ran your mciStreamPlayer and thinking it need for my program. Could you please modify your code for me? i'm not sure i can make it best.
   Some events as Mediaplayer:
 - mciStreamPlayer open (play) a stream.
 - Stop
 - Pause
 - Close
 - And can continuous with another stream....

Sorry for my bad Delphi.  
0
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

 
2266180Commented:
I don't have the time right now so you'll have to wait a few days. post a reminder message here in about 3 days (meaning next monday).
0
 
j88Author Commented:
Good morning ciuly!
  As you told to me, now i post a reminder message here.
0
 
2266180Commented:
ok. thanks :) I will get to this sometime today
0
 
j88Author Commented:
Thank for your help, ciuly! enhance your mciStreamPlayer when you have free time.
0
 
2266180Commented:
thanks, I will post here when it's done. I wrote some stuff yesterday evening as well, but not completed.

more maybe tomorrow or next week :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.