Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

MMS and JW Player for Silverlight


Hi, I'm trying to use my MMS live stream with JW Player for Silverlight, but it is not working.
bc.. <script type='text/javascript' src="silverlight.js"></script>
<script type='text/javascript' src="wmvplayer.js"></script>
<script type="text/javascript">
var cnt = document.getElementById("mediaspace");
var src = 'wmvplayer.xaml';
var cfg = {
file:'mms://seef.tv/TV',
image:'preview.jpg',
height:'240',
width:'440'
};
var ply = new jeroenwijering.Player(cnt,src,cfg);
</script>

24 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

Can you provide a link to where you are running this?

JW Player

User  
0 rated :

on my pc,
the stream is working and you can see it, bu the player is not.
thanks

Ethan Feldman

JW Player Support Agent  
0 rated :

Again, Can you provide a link to where you are running this?

JW Player

User  
0 rated :

I had same issue as Ethan.

But when I put it to internet it works great.

Ethan Feldman

JW Player Support Agent  
0 rated :

@Sergey – This is probably because you are trying to run the MMS stream locally. Do you have a link?

JW Player

User  
0 rated :

same issue as haythoo

I like to put video from http://www.uitzendinggemist.nl/ on my own web site.

They promise: 'it's easy. All you have to do is copy en paste embedded code in your page:
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="530" height="306"><param name="source" value="http://embed.player.omroep.nl/sle/ugslplayer.xap"/><param name="enablehtmlaccess" value="true"/><param name="initParams" value="episodeID=11662824,width=530,height=306,volume=100,viewMode=video,playMode=pause,playlistEnabled=yes" /><embed source="http://embed.player.omroep.nl/sle/ugslplayer.xap" type="application/x-silverlight-2" enablehtmlaccess="true" width="530" height="306" initParams="episodeID=11662824,width=530,height=306,volume=100,viewMode=video,playMode=pause,playlistEnabled=yes"><a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;"><img src="http://embed.player.omroep.nl/sle/downloadsilverlight.jpg" alt="Get Microsoft Silverlight" style="border-style: none"/></a><br /><a href="http://player.omroep.nl?aflID=11662824">Of bekijk de flash versie.</a></embed></object>

I did not succed, so I want to try with JW player:
<script type="text/javascript" src="media/silverlight.js"></script>
<script type="text/javascript" src="media/wmvplayer.js"></script>

<div class="container">
<div class="content">
<h1>Instructions</h1>
<div id="container"></div>
<script type="text/javascript">
var cnt = document.getElementById("container");
var src = 'media/wmvplayer.xaml';
var cfg = {height:'320',width:'470',file:"http://player.omroep.nl?aflID=11662824"};
var ply = new jeroenwijering.Player(cnt,src,cfg);
</script>

In Firefox it shows the JW player, but no stream?

Ethan Feldman

JW Player Support Agent  
0 rated :

Where are you running the player here? I can’t find it.

JW Player

User  
0 rated :

I was attempting this as well. The stream is hosted elsewhere, but I'm looking for a way to stream it using something other than Windows Media Player so it's more likely to work in other browsers (such as Firefox).

Link: http://local.thescripters.net/wmvplayer/atlashaven.html

bc.. <div name="mediaspace" id="mediaspace"></div>
<script type='text/javascript' src="silverlight.js"></script>
<script type='text/javascript' src="wmvplayer.js"></script>
<script type="text/javascript">
var cnt = document.getElementById("mediaspace");
var src = 'wmvplayer.xaml';
var cfg = {
file:'mms://entropiaradio.com/atlashaven',
//image:'preview.jpg',
height:'60',
width:'440'
};
var ply = new jeroenwijering.Player(cnt,src,cfg);
</script>

Ethan Feldman

JW Player Support Agent  
0 rated :

Change:

usefullscreen=‘false’,

To:

usefullscreen:‘false’,

Should be fixed now.

JW Player

User  
0 rated :

Right, I did that after I posted, but it isn't doing anything...

JW Player

User  
0 rated :

I just used VLC to see what codec the stream is using, and it's using WMA2... WMA2 isn't listed in the "Supported Formats" list. Could that be the problem?

Ethan Feldman

JW Player Support Agent  
0 rated :

When I press play I get a 404 Error in Firebug – http://entropiaradio.com/atlashaven

JW Player

User  
0 rated :

But if I put in mms://entropiaradio.com/atlashaven it works perfectly in VLC, Windows Media Player, and Winamp.

I don't know for sure how it's set up on the entropiaradio.com server, but I know mms:// works while http:// does not. Presumably due to the MMS server working on a different port and being separate from the general HTTP server. Therefore a URL designed to work on the MMS server would be invalid when attempting to use it on the HTTP server.

Provided that MMS and HTTP protocols are different, and require different subsystems to handle them, I'm not surprised your link doesn't work. I would recommend trying it with mms:// in a standalone player, rather than the http:// as the protocol.

Ethan Feldman

JW Player Support Agent  
0 rated :

Can you try to add port 80 at the end?

So, mms://entropiaradio.com/atlashaven:80 instead? Does that work?

JW Player

User  
0 rated :

No, MMS is port 1755. Not 80.

JW Player

User  
0 rated :

Addition:

mms://entropiaradio.com/atlashaven
mms://entropiaradio.com:1755/atlashaven

Both work in VLC.

http://entropiaradio.com/atlashaven
http://entropiaradio.com:1755/atlashaven

Neither work in VLC.

Ethan Feldman

JW Player Support Agent  
0 rated :

There has to be some other port.

I just tried out your URL in the wizard and now the 404 error no longer happens, but it continues to spin.

<script type='text/javascript' src='silverlight.js'></script>
<script type='text/javascript' src='wmvplayer.js'></script>
 
<div id='container'></div>
 
<script type='text/javascript'>
 var cnt = document.getElementById('container');
 var src = '/jw/embed/wmvplayer.xaml';
 var cfg = {height:'250',width:'470',file:'mms://entropiaradio.com:1755/atlashaven'};
 var ply = new jeroenwijering.Player(cnt,src,cfg);
</script>

JW Player

User  
0 rated :

There can be *NO* other port. MMS and HTTP are two different protocols. The simple fact that you can use mms://entropiaradio.com/atlashaven in a *REAL* standalone player (WMP, VLC, etc) with*out* the port number proves that it's using the standard port: 1755.

I'm open to suggestions. However, MMS and HTTP are related but not necessarily compatible. There is no way it can use a non-standard port without *specifying* said port in the URL.

Now, is JW Player capable of playing an MMS stream or not? It doesn't appear to be. Unless (as I brought up earlier) the stream I am trying to play is in an unsupported format. Now if that's the case, let me know so I can try to fix it. If it's not, then there's obviously bugs in the applet.

The trouble with using Firebug is that it makes connections using HTTP. The applet is supposed to be supporting MMS.

Would it make a difference if I created a .asx playlist and put the MMS URL in that? Should I create a redirect to the MMS URL? Something must work. But nothing is as yet.

As for your given code, what is it you're trying to say? Am I supposed to try that? Am I supposed to modify it? I tried using it. Same result (as I'm sure you would be able to test on your own), except on my other system (also Windows 7) the applet doesn't show up at all. Your last code snippet worked less than the original.

Sorry if I sound snippy, but so far this has been little help.

JeroenW

JW Player Support Agent  
0 rated :

The player (note it’s Silverlight 1!) does support the MMS protocol. I have seen working installations pointing directly to an MMS stream.

The WMA2 format can be the issue indeed. Can you easily try configuring your server for another format – e.g. WMA1? That should be a quick check to see if the format is the issue.

JW Player

User  
0 rated :

I think the list of supported formats included WMA7, 8, and 9 -- The client that sending the stream to the server is sending as WMA9...

I'll check to see if there is a way to configure the server itself, but I'm not positive.

JW Player

User  
0 rated :

Hello,

I am trying to stream live video from my WM Server. I want embed live stream in JW Player but it not working for me. Below is the code that I am using. Also, I am using Window Media Encoder to encode. Can you please help with this issue. The mms link works fine in Window Media player.

URL: http://s194248109.onlinehome.us/silver1.htm

---------------------------------------------------------------------
<div name="mediaspace" id="mediaspace"></div>
<script type="text/javascript" src="silverlight.js"></script>
<script type="text/javascript" src="wmvplayer.js"></script>

<div id="myplayer">the player will be placed here</div>

<script type="text/javascript">
var elm = document.getElementById("myplayer");
var src = '/wmvplayer.xaml';
var cfg = {
file:'mms://bitcast.servegame.com/test',
width:'320',
height:'180'
};
var ply = new jeroenwijering.Player(elm,src,cfg);
</script>
---------------------------------------------------------------------

Thnx.

JeroenW

JW Player Support Agent  
0 rated :

If it’s not picked up by the player, there’s not much we can do (like with above issues).

Have you tried the player that comes with the Silverlight Media Framework? That one is Silverlight4 instead of Silverlight1, and might be able to play the stream.

JW Player

User  
0 rated :

How can JWplayer (in silverlight), check if stremaing is offline and display "streamin off line. Try later" ?

JeroenW

JW Player Support Agent  
0 rated :

The player cannot do that. You should probably look at another Silverlight player for this kind of feature.

This question has received the maximum number of answers.