Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

204
Views
Is there a way to play audio on a mobile browser with only a src url?

Using the spotify API I'm able to retrieve and play various songs after creating an audio element with the appropriate src.

'<audio preload="auto" src="https://p.scdn.co/mp3-preview/43e7efa8214783c2af2cb32edbb94b7c836fc4b2?cid=null"></audio>'

http://codepen.io/niko8888/pen/jyyKLZ

var fetchTracks = function (albumId, callback) {
    $.ajax({
        url: 'https://api.spotify.com/v1/albums/' + albumId,
        success: function (response) {
          console.log(response)
            callback(response);
        }
    });
};

The problem is that it refuses to play on a mobile browser. Is there a way to do this?

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!