[MPlayer-users] ASX Decoding and relative URLs
Hatamoto
hatamoto at hhole.com
Sun Mar 16 21:42:56 CET 2003
Hey guys,
I've been using MPlayer-0.90rc4 with MozPlugger, tweaking things so all the
missing MIME types would be recognized and give me all the streaming media joy
as I might expect from MSIE... except on linux and mozilla. For the most part,
I've been successful.
However, I've noticed that when asx files are generated that use relative
URLs in the source, mplayer gets confused and doesn't play 'em. For example,
the following asx would fail:
<Asx Version = "3.0" >
<Param Name = "Name" Value = "Windows Media" />
<Entry>
<Title >Video</Title>
<Param Name = "Name" Value = "Video" />
<Param Name = "MediaType" Value = "video" />
<Param Name = "MediaAttribute" Value = "0" />
<Param Name = "DigitallySecure" Value = "0" />
<Param Name = "PlayCount" Value = "0" />
<Param Name = "SourceURL" Value = "/video.wmv" />
<Ref href = "/video.wmv" />
</Entry>
</Asx>
Whereas this one would work:
<Asx Version = "3.0" >
<Param Name = "Name" Value = "Windows Media" />
<Entry>
<Title >FQDN Video</Title>
<Param Name = "Name" Value = "Video" />
<Param Name = "MediaType" Value = "video" />
<Param Name = "MediaAttribute" Value = "0" />
<Param Name = "DigitallySecure" Value = "0" />
<Param Name = "PlayCount" Value = "0" />
<Param Name = "SourceURL" Value = "http://fqdn.com/video.wmv" />
<Ref href = "http://fqdn.com/video.wmv" />
</Entry>
</Asx>
I poked around asxparser.c and playtree.c to see if it'd be something easily
fixed, but nothing leapt out at me as to where I'd tack on that sort of thing
and sadly I don't have a whole bunch of spare time to get familiar with the
code. :(
If relative URLs can be compensated for, I'd say approximately 25-30% of the
embedded video I see 'in the wild' that currently fails would magically start
to work (the other portion being taken up by oddball MIME types or mms:
streams). Please consider adding it.
More information about the MPlayer-users
mailing list