[DUG] Play a movie from a stream
Kyley Harris
kyley at harrissoftware.com
Wed May 17 17:06:16 NZST 2006
Phil. Windows Media Supports playing IStream. So using the
TStreamAdapter interface you should be able to parse and play any
tstream with valid information in it.
You can download the Windows Media Format SDK to get C example apps etc
on how to do all this.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmform9
5/htm/sampleapplications.asp
look at IWMReader interface etc
Suffice it to say that this is how windows does all their internet media
streaming. And it probably takes a lot of reading to work out how to do
it. But that's what MSDN is for
________________________________
From: delphi-bounces at ns3.123.co.nz [mailto:delphi-bounces at ns3.123.co.nz]
On Behalf Of Phil Middlemiss
Sent: Wednesday, 17 May 2006 3:54 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Play a movie from a stream
Thanks Ben, I will take a closer look at it. As soon as I saw the
Filename and the checks on the filename in the SetFileName routine, I
dismissed it. I'll give it a go now though.
Cheers,
Phil.
Ben Taylor wrote:
well, from the 2sec i spent looking at it, it installs a custom
io-handler to the
mediaplayer, then implements the iorequests using a memorystream..
there's
definately no file-based activity there. yes, you need to set a filename
in the
mediaplayer, but thats only used to identify which named-memorystream to
use as a
datasource..
hth,
b
--- Phil Middlemiss <phil at tumonz.co.nz> <mailto:phil at tumonz.co.nz>
wrote:
---------------------------------
Hi Ben,
yes, found that before too. Works by writing to a temporary file as
faras I can tell
by looking at the source code. As I said, I spent half aday scouring the
internet.
Has no one done this before?
Phil.
Ben Taylor wrote:
1min on google found this:
http://www.wilsonc.demon.co.uk/misccomponents.htm"TMediaPlayerMemoryFile
allows you
to play wave and AVI memory images using theregular Delphi TMediaPlayer
component.
You can create the memory images on-the-flyor load them from
resources."looks like a
nice workaround to the mediaplayer limitation..no idea if it works.. ---
Phil
Middlemiss <phil at tumonz.co.nz> <mailto:phil at tumonz.co.nz> wrote:
I need to play a video clip (with audio) from a memory stream instead of
Send instant messages to your online friends
http://au.messenger.yahoo.com
_______________________________________________Delphi mailing
listDelphi at ns3.123.co.nzhttp://ns3.123.co.nz/mailman/listinfo/delphi
begin:vcard
fn:Phil Middlemiss
n:Middlemiss;Phil
org:Vision Software, MTS Ltd
email;internet:phil at tumonz.co.nz
title:Project Leader
tel;work:+64 7 3480001
tel;cell:+64 27 4592648
x-mozilla-html:TRUE
url:http://www.tumonz.co.nz
version:2.1
end:vcard
_______________________________________________
Delphi mailing list
Delphi at ns3.123.co.nz
http://ns3.123.co.nz/mailman/listinfo/delphi
Send instant messages to your online friends
http://au.messenger.yahoo.com
_______________________________________________
Delphi mailing list
Delphi at ns3.123.co.nz
http://ns3.123.co.nz/mailman/listinfo/delphi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ns3.123.co.nz/pipermail/delphi/attachments/20060517/1d7ee052/attachment-0001.html
More information about the Delphi
mailing list