Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8412131
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T00:35:59+00:00 2026-06-10T00:35:59+00:00

I’ve recently encountered an issue that I seem unable to solve. I am creating

  • 0

I’ve recently encountered an issue that I seem unable to solve. I am creating a simple component for an application that plays audio files (primarily .mp3 and .wav) and after doing some testing, the application appears to work fine in Chrome.

However in IE9, which is the only major browser that I am concerned with I seem to hit a brick wall when serving my audio files.

The files are currently being requested through a Controller Action as shown:

public ActionResult PlayAudioFile(string id)
{     
    AudioFile af = FileAgent.GetAudioFile(id);

    try
    {
          //Grabs the file via a Provider
          Stream resultStream = StorageProvider[af.Provider].ReadFile(af.Location);
          resultStream.Position = 0;

          //Added several headers in attempts to resolve the issues
          Response.AppendHeader("Content-Disposition", "attachment; filename=audio.mp3");
          Response.AppendHeader("Content-Length", resultStream.Length.ToString());
          Response.AddHeader("Accept-Ranges", "bytes");
          Response.Headers.Remove("Cache-Control");
          Response.AddHeader("Content-Range","bytes 0-" + (resultStream.Length-1).ToString() + "/" + resultStream.Length.ToString());

          //Returns the file and associated file type (from the Provider)
          return new FileStreamResult(resultStream, resultStream.ContentType);
     }
     catch
     {
            //Uh oh. Error
     }         
}

The above works great for Chrome and has worked in a variety of HTML5 Players, such as jPlayer, audio.js and MediaElement. However, when the file is requested by something like the following (using jPlayer syntax):

$(this).jPlayer("setMedia", {
    mp3: '@Url.Action("PlayAudioFile","Home")?id=D00023',
});

or audio.js syntax:

player.load('@Url.Action("PlayAudioFile","Home")?id=D00023');

and associated audio.js audio tag:

<audio preload="auto" crossorigin="use-credentials"></audio>

Which fires the proper action and returns the FileStreamResult, however it appears that all of the players are having difficulty deciphering the file and reading it properly. I have tried several players and have run into this same issue in all of them.

Any suggestions would be greatly welcome. Thanks.

NOTES:

  • As mentioned in one of the comments, I have attempted using multiple and a variety of comment types to resolve this issue. None of which have worked.

  • When exploring some possible root causes of this issue, I noticed that removing the [Authorize] attribute cleared up some of the issues with directly accessing the file, but all of the players were unable to load the file within IE9.

  • I am now convinced that this could be a credentials issue and that when I need to request the file through jPlayer or audio.js (or what have you) I need to include the necessary credentials to allow it to access the file through the controller.

  • Attempted to use $.ajax({ withCredentials: true}) and <audio crossorigin='use-credentials>. Both without success.

HEADER INFORMATION:

Both of the requests (the working one in Chrome and the non-functional one in IE9) both have these same headers:

Cache-Control: public, max-age=3600, s-maxage=0
Date: [Current Date Time]
Expires: [Current Date Time + max-age]
Vary: *

Content-Length: 77870
Content-Type: audio/mpeg
Last-Modified: [Date]

Accept-Ranges: bytes
Content-Range: bytes 0-77869/77870
Server: Microsoft-IIS/7.5
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T00:36:01+00:00Added an answer on June 10, 2026 at 12:36 am

    After delving further into the issue, it became apparent that the issue was being caused by the encoding of the .mp3 files themselves during the recording process. I elected to process them through Audacity and after doing so they were recognized by IE9 (as well as other browsers).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am doing a simple coin flipping experiment for class that involves flipping a
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I have a French site that I want to parse, but am running into
I know there's a lot of other questions out there that deal with this
Seemingly simple, but I cannot find anything relevant on the web. What is the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.