Skip to main content

Microsoft Silverlight

Answered Question asx file in silverlight radio playergiving 4001 error, while typing that file to ie url plays correctly itRSS Feed

(0)

skm.software@yahoo.com
skm.soft...

Member

Member

196 points

212 Posts

asx file in silverlight radio playergiving 4001 error, while typing that file to ie url plays correctly it

Hi

I have created a radio player in silverlight, wma file correctly working on this radio(i.e if we give the path
of wma file) but if I give the path of asx file, it gives 4001 error while typing that asx url in internet explorer
will play the audio correctly.
Is anyone has the solution for this.

 

 

Sachin Mukhija
"Please Mark as answer if answer is correct".

bryant
bryant

Star

Star

9447 points

1,558 Posts

Silverlight MVP
Answered Question

Re: asx file in silverlight radio playergiving 4001 error, while typing that file to ie url plays correctly it

Make sure you're not using an unsupported part of ASX and that your media files are the right encoding for Silverlight. From the SDK:

MediaElement also supports playlists in the form of Advanced Stream Redirector (ASX) files, also known as Windows Media metafiles. Although the file name extension does not matter, these files typically have the .asx, .wax, .wvx, .wmx, or .wpl extension. For more information about these file types, see Windows Media Metafiles.

Cc189080.alert_note(en-us,VS.95).gifNote:

The following features of ASX files are not supported in Silverlight.

ASX feature

Description

PreviewMode Attribute

This attribute is found on the root ASX object. It is not supported and will raise a MediaError with AG_E_ASX_UNSUPPORTED_ATTRIBUTE.

BannerBar Attribute

This attribute is found on the root ASX object. It is not supported and will raise a MediaError with AG_E_ASX_UNSUPPORTED_ATTRIBUTE.

SkipIfRef

This attribute is found on the root ENTRY object. It is not supported and will raise a MediaError with AG_E_ASX_UNSUPPORTED_ATTRIBUTE.

PARAM Element

This is not supported and will raise a MediaError with AG_E_ASX_UNSUPPORTED_ELEMENT.

REPEAT Element

This is not supported and will raise a MediaError with AG_E_ASX_UNSUPPORTED_ELEMENT.

EVENT Element

This is not supported and will raise a MediaError with AG_E_ASX_UNSUPPORTED_ELEMENT.

STARTMARKER Element

This is not supported and will raise a MediaError with AG_E_ASX_UNSUPPORTED_ELEMENT.

ENDMARKER Element

This is not supported and will raise a MediaError with AG_E_ASX_UNSUPPORTED_ELEMENT.

Invalid content

If a valid ASX tag has content that is not accepted (for example, a MOREINFO tag contains a REF tag), a MediaFailed error is raised.

Fallback URLs

If an ENTRY tag has multiple REF children, only the first one is read. Unlike WMP, Silverlight will not attempt to open additional REF URLs in case the first one fails, and a MediaFailed error is raised.

For more information on ASX elements, see ASX Elements Reference.

-- bryant

Blog | Twitter
_________________
Dont forget to click "Mark as Answer" on the post that helped you.

skm.software@yahoo.com
skm.soft...

Member

Member

196 points

212 Posts

Re: asx file in silverlight radio playergiving 4001 error, while typing that file to ie url plays correctly it

Hi

Thanks for reply,

In my appication , asx file contains only the path of wma file and nothing else like

mms://sitepath/wma_file_path.wma

asx file contains only the above line and not anything.

Can you please specify which changes are reqired.

 

Sachin Mukhija
"Please Mark as answer if answer is correct".

Jonathan Shen – MSFT
Jonathan...

All-Star

All-Star

23562 points

2,304 Posts

Microsoft
Answered Question

Re: asx file in silverlight radio playergiving 4001 error, while typing that file to ie url plays correctly it

Hi Skm,

skm.software@yahoo.com:

In my appication , asx file contains only the path of wma file and nothing else like

mms://sitepath/wma_file_path.wma

 

Please make sure your asx file has the correct format.

For example,

<ASX VERSION="3.0" >
   <ENTRY href="http://sample.microsoft.com/sample1.ASX" />       //absolute url is preferred
</ASX>

To create the asx file, please reference to this article.
Some of the properties, listed on bryant's reply are not supported.  MMS protocol is not supported and will fall back to http.

The following Web protocols/schemes are supported:

  • http

  • https

  • mms (You can use an mms URL, but it will fall back to http.)

  • rtsp (You can use an rtsp URL, but it will fall back to http.)

  • rtspt (You can use an rtspt URL, but it will fall back to http.)

Best regards,

Jonathan

 

 

Jonathan Shen
Microsoft Online Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities