Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Entertainment » microsoft.public.windowsmedia.sdk
Thread: Play ASX using async reader

HTVi
TV Discussion Newsgroups

Play ASX using async reader
Olivier 5/2/2007 10:18:01 AM
Hello,

Is it possible to play from ASX sources using the asynchronous reader from
the WM9 Format SDK?

I whish to use the Format SDK because I need to manage the decoded video and
audio.
I must use the async reader because my source content is from the Internet.
I need to play from ASX playlists because it is like that on the server I am
connecting to.

When opening a ASX URL using the async reader, I receive a 0xc00d0026 result
within the WMT_OPENED status catched by my callback object...

Any idea?


Re: Play ASX using async reader
"Alessandro Angeli" <nobody[ at ]nowhere.in.the.net> 5/2/2007 1:37:26 PM
From: "Olivier"

[Quoted Text]
> Is it possible to play from ASX sources using the
> asynchronous reader from the WM9 Format SDK?
>
> I whish to use the Format SDK because I need to manage
> the decoded video and audio.
> I must use the async reader because my source content is
> from the Internet. I need to play from ASX playlists
> because it is like that on the server I am connecting to.
>
> When opening a ASX URL using the async reader, I receive
> a 0xc00d0026 result within the WMT_OPENED status catched
> by my callback object...

That's NS_E_UNRECOGNIZED_STREAM_TYPE, has you could have
find out by looking at nserror.h. AFAIK, the WM readers only
read ASF streams (and MP3s) and an ASX is not one. An ASX is
an XML playlist, that is a text file. You need to parse it
yourself using e.g. MSXML, extract the entry URL and then
open the latter in the reader.



--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm


Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen