Go Back   CodingForums.com > :: Client side development > Graphics and Multimedia discussions

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-21-2009, 02:02 PM   PM User | #1
Rowsdower!
Senior Coder

 
Rowsdower!'s Avatar
 
Join Date: Oct 2008
Location: Some say it's everything.
Posts: 2,007
Thanks: 5
Thanked 395 Times in 388 Posts
Rowsdower! has a spectacular aura aboutRowsdower! has a spectacular aura aboutRowsdower! has a spectacular aura about
JW FLV Player to Stream Audio from 3rd Party

I'm trying to get a Cumulus radio station to stream on my desktop webpage while I'm at work using the JW FLV player. I had been using WMP up to now and this type of URL:
http://player.cumulusstreaming.com/S...?PubPtASXStrng
but the FLV player won't accept this URL.

So my first and most pressing questions is this:

Is it even possible to stream like this in the FLV player from the URL stream I have listed? Do I need to list a file extension at the end of the URL? The JW FLV player is supposed to play a ton of filetypes but I don't know how to tell what filetype exists at the link above (looks like maybe a WMA file? I know these aren't supported so hopefully I'm wrong).

I can't find much support on the streaming issue on the longtail site. They seem to assume most users would be streaming their own content (which is a reasonable assumption but doesn't help me at all) so I'm a bit lost. As you can see I'm not brilliant with media embedding... Any help is appreciated!
__________________
The object of opening the mind, as of opening the mouth, is to shut it again on something solid. –G.K. Chesterton
See Mediocrity in its Infancy
It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
Seek and you shall find... basically:
validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting
Rowsdower! is offline   Reply With Quote
Old 01-21-2009, 05:04 PM   PM User | #2
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
I think it is. Go to their site and type in asx in the search box. You'll get some results many of people trying to do the same but there are a few suggestions that might work for you.
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline   Reply With Quote
Old 01-23-2009, 01:49 PM   PM User | #3
Rowsdower!
Senior Coder

 
Rowsdower!'s Avatar
 
Join Date: Oct 2008
Location: Some say it's everything.
Posts: 2,007
Thanks: 5
Thanked 395 Times in 388 Posts
Rowsdower! has a spectacular aura aboutRowsdower! has a spectacular aura aboutRowsdower! has a spectacular aura about
OK, I have just moved over to using the JW WMV player (plays WMA also, which is exactly what I needed). I have my menu structure working well with this new player. For posterity (incase anyone else is looking for the same solution) I have outlined my solution below. If you don't care to read this then please skip to the part below the green text because I still have an issue that I would like to resolve.

This is the script I am using in the header when I change radio stations:

Code:
<script type="text/javascript">
function radioswitch(station){
  var elm = document.getElementById('radioplayer');
  var src = '/ssrp/embed/wmvplayer.xaml';
  var cfg = {
    file: station,
    width:'250',
    height:'20',
    autostart:'true',
    volume:'25'
  };
  var ply = new jeroenwijering.Player(elm,src,cfg);
}
</script>
The player (and initially empty file source just to populate the div with a player) is stored here:
Code:
      <div style="position: relative;top: 0px;left: 175px; width:250px;"> <!-- Open Player -->
        <div id="radioplayer">the player will be placed here</div>
        <script type="text/javascript">
          var elm = document.getElementById("radioplayer");
          var src = '/ssrp/embed/wmvplayer.xaml';
          var cfg = {
            file:'',
            width:'250',
            height:'20',
            volume:'10'
          };
          var ply = new jeroenwijering.Player(elm,src,cfg);
        </script>
        <br>Now Playing: <span id="radionowplaying">--</span>
      </div> <!-- Close Player -->
Then my menu appears in a <ul> with menu items grouped into genre categories. Individual stations are listed like this:
Code:
<li><input id="rock5" onclick="highlight(rock5);radionowplaying(rock5);radioswitch('http://player.cumulusstreaming.com/Stations/WXKR-FM/PubPoint.asx?PubPtASXStrng');" type="button" name="music" value="94.5 WXKR (Toledo, Rock)" /></li>
Basically I am rewriting the entire player with each station change because with 71+ stations in my menu I don't want to use the default tracklist with an XML directory of the stations. That would be a pain to find the right station in a straight scroll-through menu.

When a station is played the end result looks something like the thumbnail below. There is also a video player, but this is on a separate setup with <div id="videoplayer">...

Anyway, the problem I am having now is that I would like to preserve the player's current volume level in between station changes. Is there a way to capture this in a variable on each call of radioswitch at the very beginning so that I don't have to default back to 25% every time? I know how to implement the preserved volume once it has been determined but I don't how how to actually grab it from the player. I imagine there has to be a way to do it but I can't even begin to guess what it would be.

Any thoughts or experience with this?
__________________
The object of opening the mind, as of opening the mouth, is to shut it again on something solid. –G.K. Chesterton
See Mediocrity in its Infancy
It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
Seek and you shall find... basically:
validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting

Last edited by Rowsdower!; 03-03-2009 at 07:00 PM..
Rowsdower! is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:31 PM.


Advertisement
Log in to turn off these ads.