[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Play avi file from a stream

Posted on 2007-10-17
Medium Priority
Last Modified: 2012-05-05
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!
Question by:j88
  • 5
  • 3
LVL 28

Expert Comment

ID: 20099137
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)

Author Comment

ID: 20106118
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.  
LVL 28

Expert Comment

ID: 20107032
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).
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 20127818
Good morning ciuly!
  As you told to me, now i post a reminder message here.
LVL 28

Expert Comment

ID: 20129206
ok. thanks :) I will get to this sometime today
LVL 28

Accepted Solution

2266180 earned 1000 total points
ID: 20130052
I transformed the project into a component + demo.
it took me a few hours. I have to get back to paid projects :) I'll add more to it tomorrow.

Author Comment

ID: 20152728
Thank for your help, ciuly! enhance your mciStreamPlayer when you have free time.
LVL 28

Expert Comment

ID: 20154004
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 :)

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Screencast - Getting to Know the Pipeline
Suggested Courses
Course of the Month19 days, 21 hours left to enroll

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question