flash based radio player

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dolittle
    New Member
    • Sep 2007
    • 54

    flash based radio player

    Hi,

    Is it possible to play internet radio streams in flash?

    I saw flash radio players but sometime internet radio uses windows media player.
    How can I know if I can play a url with flash? Does it depends on crossdomain.xml , streaming format?

    Do you know of an example for flash based internet radio player?

    Thanks
  • joedeene
    Contributor
    • Jul 2008
    • 579

    #2
    im not sure if thats possible, i know you can load an external mp3 off of the internet, but im not sure like a playlist, or stream that keeps playing. here are a few sites that are related to your situation:

    Link 1

    Link 2

    i doubt thats what you're looking for, but i'll keep looking and send a link if theres a tutorial. but with the sound properties just for 'Sound' in actionscript, no, you would have to put together a little code yourself. because .loadSound or .attachSound only adds like a file format, like mp3 or wav or whatever. but idk, i dont think streams have file formats. i'll keep looking

    Comment

    • dolittle
      New Member
      • Sep 2007
      • 54

      #3
      Thank you for your answer.

      I've found that Yahoo media player enable you to listen to ShoutCast streams:
      http://www.fistfulayen .com/blog/?p=183

      I guess it's possible.

      If you'll have any more info that will be great.

      Thanks

      Comment

      • joedeene
        Contributor
        • Jul 2008
        • 579

        #4
        alright bud, i got something to work out, that might benefit you. idk if its the station you want, or anything. but using the following code:

        Code:
        on (release) {
        	var my_sound:Sound = new Sound();
        	my_sound.loadSound("http://205.188.215.229:8016/;foo.mp3", true);
        }
        works, you dont even have to tell the var my_sound to start(play), since it is streaming. but so it is possible, its just a matter of finding like a host, or streaming website to suit your desires...umm but ya using that link (http://www.fistfulayen .com/blog/?p=183) and it had the

        http://205.188.215.229 :8016/;foo.mp3

        and since that is in mp3 format, you set the streaming boolean to true, and it will continously play. if you try to implement a stop button or pause, just make sure the sound var doesnt not say .play because loading the stream does far enough (*from my experience) mess with it how you please. ok hope i helped.

        Comment

        • dolittle
          New Member
          • Sep 2007
          • 54

          #5
          Thanks

          I'll try it.
          I wonder if I could include other formats.

          Originally posted by joedeene
          alright bud, i got something to work out, that might benefit you. idk if its the station you want, or anything. but using the following code:

          Code:
          on (release) {
          	var my_sound:Sound = new Sound();
          	my_sound.loadSound("http://205.188.215.229:8016/;foo.mp3", true);
          }
          works, you dont even have to tell the var my_sound to start(play), since it is streaming. but so it is possible, its just a matter of finding like a host, or streaming website to suit your desires...umm but ya using that link (http://www.fistfulayen .com/blog/?p=183) and it had the

          http://205.188.215.229 :8016/;foo.mp3

          and since that is in mp3 format, you set the streaming boolean to true, and it will continously play. if you try to implement a stop button or pause, just make sure the sound var doesnt not say .play because loading the stream does far enough (*from my experience) mess with it how you please. ok hope i helped.

          Comment

          • joedeene
            Contributor
            • Jul 2008
            • 579

            #6
            Originally posted by dolittle
            Thanks

            I'll try it.
            I wonder if I could include other formats.

            ok, what do u mean formats ? and on the http://205.188.215.229 :8016/ site, you can change the port number('8016") to about 15 other stations, each one after 8000, like


            http://205.188.215.229 :8000
            http://205.188.215.229 :8002
            http://205.188.215.229 :8004
            http://205.188.215.229 :8006
            http://205.188.215.229 :8008
            every other digit.......
            http://205.188.215.229 :8018
            http://205.188.215.229 :8020
            http://205.188.215.229 :8022
            .....
            until like 8034
            something around there, umm, and you dont even need the /foo.mp3, you can just put the http://205.188.215.229 :8016 or whatever port number, and it works.
            ok, just letting you know

            Comment

            • dolittle
              New Member
              • Sep 2007
              • 54

              #7
              What I'm asking is if internet radio stations stream in several formats other then mp3.

              Will Flash be able to stream something else?

              Comment

              Working...