Link to home
Start Free TrialLog in
Avatar of sneeuw
sneeuwFlag for Belgium

asked on

MediaPlayer, playing from memory rather than via FileName ... ??

Hi,

I use Borland C++ Builder 4.

I want to play a MediaFile with NO filename.
E.g.  Now, the component runs when a Filename is delivered via a String object.

I'd like (if possible) to play from memory ???
Is that possible ??
If yes ... How ???
Avatar of sneeuw
sneeuw
Flag of Belgium image

ASKER

Maybe this wasn't clear :
I'd like to use the TMediaPlayer component.
ASKER CERTIFIED SOLUTION
Avatar of AlexVirochovsky
AlexVirochovsky

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sneeuw

ASKER

Isn't there then any other possibility to do this ??  Maybe inherit from the TMediaPlayer Component and change functionality of some sort ... not that I know how to do that.
Avatar of AlexVirochovsky
AlexVirochovsky

>>Isn't there then any other possibility to do this ??
I don't found it. May be someone
else knows it, but you Q. was opened
2 days without reply...
Avatar of sneeuw

ASKER

Ok ...
Let's give it 1 or 2 more days !
When nobody else comes up with an answer ... You get the points !
Fair ?
Ok, make deal!
sneeuw, sorry, but now is 20 in November, and , as i predicted, no
comments!
Avatar of sneeuw

ASKER

Hi,

Sorry, have been on a weekend (all weekend ... far far away from my PC).

Before I close this up I was wondering if following couldn't be done (haven't tried it yet myself) :

Inherit from TMediaPlayer.
IF TMediaPlayer uses the TFileStream component, I possibly could re-write it with a TMemoryStream object ????
Any thoughts on this ??

Also ... Can I access the TMediaPlayer source code ?? (How ??)
Is it in C or Pascal ???
(I use Borland C++ Builder 4, Enterprise edition)

Peter
Peter, text of MPlayer.pas i can send you(write you Email). From text you can easy see, that MPlayer.pas uses
MCI Api interface! But MCI functions
may works only with files/drives/..
but not with memory.
>> I am sorry, but answer is "No".
Alex
Avatar of sneeuw

ASKER

Ok !
Then we're stuck I guess.
Thanks for the effort.

Peter