> Hi Chris,
> the HResult to the CanSaveFileAs(). call is S_OK, but the Bool that is
> output is set to FALSE.
> I'll push on and se what happens if I ignore the FALSE value.
> Cheers,
> Max.
>
> "Chris P." wrote:
>
> > On Fri, 19 Dec 2008 03:29:01 -0800, Max wrote:
> >
> > > Iʼm writing an application that uses the Windows Media Format API to read a
> > > stream, broadcast by Windows Media Encoder, and save it to disk.
> > > Iʼve written a quick test application in C++ to test that this can be done.
> > > The app can open the stream but cannot save it, getting a FALSE output from
> > > the call to IWMReaderAdvanced4->CanSaveFileAs().
> > > Can anyone point me in the right direction here?
> > > Can streams be saved to disk? The Windows Media Format API suggests this is
> > > possible.
> > >
> > > Iʼve added some of my source and header code below.
> > > The Init() function is called first and when an WMT_OPENED message is
> > > received ReadStream() is called.
> >
> > What is the HRESULT return value? If you can read the stream you can save
> > it, however the built in SaveFileAs() may not work in all cases. AFAIK it
> > is designed to work the HTTP download, not HTTP streaming.
> >
> > --
> >
http://www.chrisnet.net/code.htm> > [MS MVP for DirectShow / MediaFoundation]
> >