How to download media content on demand and reuse from browser cache in silverlight

Posted by Andrew on Stack Overflow See other posts from Stack Overflow or by Andrew
Published on 2010-05-03T00:29:27Z Indexed on 2010/05/03 0:38 UTC
Read the original article Hit count: 758

Filed under:
|
|
|
|

Hi. I have a problem with simple silverlight app, this app has a couple of buttons, each button sets mediaelement source to a short mp3 file and plays it, my problem is that when i press the same button second time it re-downloads mp3 file again but i think it shouldn't, instead it should use a copy of browser cached mp3 file that was downloaded when a button was pressed for the first time. I'm using sl4 and links in mediaelement are just simple uri's, i need to make it working in this way that when some mp3 was downloaded it will be cached on the client browser and further click on button will use a cached version of file instead of downloading it again and wasting my bandwidth. Any ideas ?

© Stack Overflow or respective owner

Related posts about Silverlight

Related posts about mp3