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 9230273
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:47:04+00:00 2026-06-18T05:47:04+00:00

I am trying to make an audio player using HTML 5 project template. I

  • 0

I am trying to make an audio player using HTML 5 project template. I am using the following HTML code :

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link rel="stylesheet" type="text/css" href="/html/css/phone.css" />
        <title>Windows Phone</title>
    </head>
    <body>
        <div>
            <p>Audio Player</p>
        </div>
        <div id="page-title">
            <p>Play Audio</p>
            <audio controls="">
            <source src="horse.ogg" type="audio/ogg">
             Your browser does not support the audio element.
            </audio>
        </div>
    </body>

</html>

I picked up this code from here, I have added the “horse.ogg” to the solution explorer as shown in the screenshot below…

enter image description here

But when I run this appication I get the following output, it reads

Invalid Source

But when I open the same html using a browser I am able to play the file properly.

enter image description here

What could be the problem ?

Is there a better and easier way in which I could play audio files which I will add to the solution explorer and play using HTML 5 ? I am planning to add 10-15 small and funny audio clips and the app will allow user to select it and play it using HTML 5.

Please share your thoughts on this.

  • 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-18T05:47:05+00:00Added an answer on June 18, 2026 at 5:47 am

    As the error message says, it’s an invalid source.

    Internet Explorer 10 doesn’t support Ogg audio files, but MP3 files. Convert your Ogg to an MP3 and it should work fine.

    <audio controls>
       <source src="horse.mp3" type="audio/mp3">
    </audio>
    

    Also, if you’re only providing one source you can use the src attribute of the audio element:

    <audio src="horse.mp3" controls></audio>
    

    But this is only really recommended if you are targetting one particular type of browser only.

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

Sidebar

Related Questions

I am trying to make an audio player using jquery and seem to have
While trying to make a Audio Player , currently working at Playlist ,and i
I am trying to make Quicktime files stream from a HTML document using the
I am trying to make http streaming program. So I follow this code at
I am trying to make an super easy audio player with jQuery. How would
Trying to make a cross protocol, same domain request from https to http. I
I'm trying to make a cross-device/browser image and audio preloading scheme for a GameAPI
I am trying to make like a audio spectrum visualizer something like this: I
We're trying to take an existing video with audio (.mov) and make a more
I'm trying to make an audio streaming app. I open stream, AudioFileStreamOpen (all ok)

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.