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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T13:40:58+00:00 2026-06-03T13:40:58+00:00

If I do this in Javascript I can play the music streak behind the

  • 0

If I do this in Javascript I can play the music streak behind the source url. No problem.

var music = new Audio();
var source = http://*HOST*.grooveshark.com/stream.php?streamKey=*STREAMKEY*;
music.src = source;
music.play();

Even better I can have a web control in my WP7 app that does this, and magically I have music playing in the app. However, I want to have audio int he background as well. So I can’t just stream audio in a web browser control.

I need to take the above kind of audio source, but use it in a native Windows Phone app. There seems to be lots of ways, MediaElement, BackgroundAudioPlayer, etc., etc…. but none of them seem to work the the above url. I can pass them a link to an mp3 on a server somewhere and everything goes fine. But I can’t seem to stream audio on a windows phone via a url like 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-03T13:40:59+00:00Added an answer on June 3, 2026 at 1:40 pm

    Try JavaScript way with Phonegap Media API for Windows Phone

    Cordova Media API

    and do it look like:

        my_media = new Media("test.mp3", onSuccess, onError);
        function onSuccess() {
            console.log("playAudio():Audio Success");
        }
        // onError Callback 
        //
        function onError(error) {
            alert('code: '    + error.code    + '\n' + 
                  'message: ' + error.message + '\n');
        }
    

    Hope this help 🙂

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

Sidebar

Related Questions

You can backreference like this in JavaScript: var str = 123 $test 123; str
im new at javascript and i can get this slider to work but not
How can I dynamically name id's using javascript? Something like this: js: var idName
Can someone please help me out with a JavaScript/jQuery solution for this arithmetic problem:
Hopefully I can articulate this problem well. I'm working on a simple audio player
How can I do this in Javascript/jQuery from PHP? I am trying to populate
Can I do this without Javascript? Here is the mock markup.. <div id=parent> <div
Can this be done in JavaScript? type == 1 ? function1() : function2();
This isn't a javascript question but I've created a fiddle so I can demonstrate
In javascript on a browser, I can do this to see if an object

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.