| View previous topic :: View next topic |
| Author |
Message |
chrissinc
Joined: 16 Oct 2007 Posts: 26
|
Posted: Tue Oct 16, 2007 7:27 pm Post subject: "Media server does not respond" |
|
|
| I'm having trouble getting the video to stream out on the internet. I'm using XP with a linksys router and I'm in the DMZ and I'm forwarding the 5000 to 6000 port range over to my machine. Everything else works through the router. Http, VNC, etc. In fact VNC uses port 5800 and 5900 so I know that the ports are getting through. What happens is when someone goes to my ip to play the sample video the browser prompts for an applet to be installed and it installs ok. Then it seems like it tries to play the video because the video screen pops up like it's going to play then this error "Media server does not respond" comes up. Works perfectly on my end. Any thoughts? I installed the UHttpproxy by the .msi installer package. Thanks |
|
| Back to top |
|
 |
tommybcool
Joined: 01 Sep 2006 Posts: 141 Location: Kansas
|
Posted: Tue Oct 16, 2007 8:29 pm Post subject: |
|
|
| So you are using IIS on XP Pro? Ports 80 and 443 I think are the important ones for IIS to be forwarded. I use Apache for embedded webpages, not IIS with Uttpproxy and that just requires 80. |
|
| Back to top |
|
 |
chrissinc
Joined: 16 Oct 2007 Posts: 26
|
Posted: Tue Oct 16, 2007 11:04 pm Post subject: |
|
|
| Yep, using IIS I may try Apache for the hell of it. But the computer is in the DMZ (all ports forwarded) and has ports 5000-6000 forwarded. Everything else under the sun but the media server works. I may try disabling VNC temporarily and changing the media server ports to 5800 which I know works 100% because VNC uses that port and it works flawlessly. I hope this works we were actually going to buy this for a commercial application but if it can't even stream then its back to emulive(which does work). I'll try installing this again on our servers outside the company but it didn't work out there either. I'll try again. |
|
| Back to top |
|
 |
chrissinc
Joined: 16 Oct 2007 Posts: 26
|
Posted: Wed Oct 17, 2007 1:07 am Post subject: |
|
|
| Okay I figured it out I had a typo in the ip address(doh) so now I can stream files but I'm having trouble streaming live media. I've had to use port 81 temporarily to get through our router at the hosting centre for now. I'm streaming a video from a dvd and it connects to the server but how do I actually see it? I've tried using the "mms://myip:81/one" where "one" is the alias of the webcam in windows media player just to see if it works and the windows media player can't find the file. I've read the instruction thoroughly and I can't see where I'm going wrong. The live server says it's connected with "idle" connections, which I'm assuming is because there are no active clients viewing the material. On the media server it also says it's connected with no clients(obviously). Is there something I'm missing? Thanks alot for the responses. |
|
| Back to top |
|
 |
osetivo
Joined: 20 Aug 2006 Posts: 58 Location: Baton Rouge, Louisiana
|
Posted: Wed Oct 17, 2007 1:25 am Post subject: |
|
|
There are so many thing that could keep you from streaming via web browser, that I would suggest you take a few steps back and tell us what you can do.
Can you stream from within the LAN via TCP or HTTP using the standalone Unreal Streaming Player, using either the server's local ip or unc machine name? _________________ Scott |
|
| Back to top |
|
 |
osetivo
Joined: 20 Aug 2006 Posts: 58 Location: Baton Rouge, Louisiana
|
Posted: Wed Oct 17, 2007 1:38 am Post subject: |
|
|
^^^Really wish I could edit posts ^^^
| chrissinc wrote: | | I'm streaming a video from a dvd and it connects to the server but how do I actually see it? I've tried using the "mms://myip:81/one" where "one" is the alias of the webcam in windows media player just to see if it works and the windows media player can't find the file. I've read the instruction thoroughly and I can't see where I'm going wrong. The live server says it's connected with "idle" connections, which I'm assuming is because there are no active clients viewing the material. On the media server it also says it's connected with no clients(obviously). Is there something I'm missing? Thanks alot for the responses. |
I'm not certain what "webcam in windows media player" means.
Have you installed the Unreal screen capture http://umediaserver.net/download.html Use it as the Live Source to stream the PC's screen. _________________ Scott |
|
| Back to top |
|
 |
tommybcool
Joined: 01 Sep 2006 Posts: 141 Location: Kansas
|
Posted: Wed Oct 17, 2007 3:34 am Post subject: |
|
|
mms://ipaddress:5119/alias if you use WMP. In that case you need to put the address string into File/Open URL of Windows Media Player.
Use TCP for the live source protocol if you are embedding in a webpage. Port 5119 is the key. Port 80 allows access to the webpage hosted on your PC, that webpage has an embedded image that is fed by UMS via port 5119. Live server feeds its image to media server via port 5120.
You need 3 ports open; 80, 5119, 5120. That's what I use to stream live video and files.
Again, I fooled a bit with IIS, but found it unnecessary using Apache instead. I'm sure there is a reason to use IIS with Uttpproxy, but I haven't found it unless https is important (I think). |
|
| Back to top |
|
 |
tommybcool
Joined: 01 Sep 2006 Posts: 141 Location: Kansas
|
Posted: Wed Oct 17, 2007 1:31 pm Post subject: |
|
|
| chrissinc wrote: | | I hope this works we were actually going to buy this for a commercial application but if it can't even stream then its back to emulive(which does work). I'll try installing this again on our servers outside the company but it didn't work out there either. I'll try again. |
Don't worry, it works amazingly well. You are just missing something in the config. I've used it with PCI video cards, usb cams, and firewire camcorders. It's load on the cpu is very low, I've hosted a live stream and file stream using the 2-head setup in SDK, both live server and media server on the same PC, and it hit about 25% cpu load. Other software would be pushing 70% or more. Uscreencapture works great for streaming a desktop (now that does use a little cpu). Now that WMP client has been added it has Mac versatility too. That's my 2 cents (sense). |
|
| Back to top |
|
 |
chrissinc
Joined: 16 Oct 2007 Posts: 26
|
Posted: Mon Oct 22, 2007 5:36 pm Post subject: |
|
|
Still doesn't work. I can stream pre-recorded stuff no problem but when I try and stream the live stuff I get this error:
"Windows media can't find the sprecific file"
I have the live server connecting to the media server no problem on port 5130. SO I use the link "mms://192.168.1.100:5130/one. WHere "one" is the alias of the live streaming channel. I've tried this on 2 different computers as the server and it never works. Any ideas? Does the camera actually have to be having a signal so that it will work? Or does just having the osprey card only work? |
|
| Back to top |
|
 |
tommybcool
Joined: 01 Sep 2006 Posts: 141 Location: Kansas
|
Posted: Mon Oct 22, 2007 7:58 pm Post subject: |
|
|
| chrissinc wrote: | Still doesn't work. I can stream pre-recorded stuff no problem but when I try and stream the live stuff I get this error:
"Windows media can't find the sprecific file"
I have the live server connecting to the media server no problem on port 5130. SO I use the link "mms://192.168.1.100:5130/one. WHere "one" is the alias of the live streaming channel. I've tried this on 2 different computers as the server and it never works. Any ideas? Does the camera actually have to be having a signal so that it will work? Or does just having the osprey card only work? |
The media server initiates the connection to the live server on static setup, not the other way around. Which means mms://192.168.1.100:5119/one is the URL you should use. A media player like WMP connects to your 192.168.1.100 via port 5119. As long as you tell media server what active alias you are looking for, it takes it from there. |
|
| Back to top |
|
 |
chrissinc
Joined: 16 Oct 2007 Posts: 26
|
Posted: Mon Oct 22, 2007 9:30 pm Post subject: |
|
|
| Thanks alot for the help tommy, well I think I'm making some headway because I get the error. "Media player cannot play the file because it is either damaged or corrupt".(using mms://192.168.1.100:5119/one) I'm using media player 9. However this was just for testing as I need the player embedded in a webpage so what I did is I took the 4 player ActiveX example and commented out (//) the other 3 players and it connects at least to the point of the live server saying it's Streaming but on the page it just has the video window with "connecting...." and a black screen then eventually drops the connection. Now I think this osprey usb dongle is toast so that may be the reason it's dropping because there is no picture or video going through there. It would be great if in the ActiveX examples there would be a web page for just one window with an alias variable attached to it. I guess I can take out any of the extraneous code and make it a one shot deal. |
|
| Back to top |
|
 |
chrissinc
Joined: 16 Oct 2007 Posts: 26
|
Posted: Tue Oct 23, 2007 12:12 am Post subject: |
|
|
Thanks again, I figured it out. The mms doesn't work so well but it doesn't matter as I will be embedding the player in webpages. Here is the code I used to get it to work. Please feel free to copy and distribute as necessary. This is a bare bones live streaming page so that you can make it pretty by yourselves. I've just xxxx out the ip's. I'll post this code as a topic so that people can have better access to it. This also allows a custom logo to show up while you're waiting for it to buffer.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Custom Logo Unreal Player</title>
<script type="text/javascript" src="umediaplayer5.js"></script>
<script language="javascript">
//Global player object
var po;
function Play(player)
{
try
{
var o = document.getElementById(player);
//load our custom logo first. Be careful! The page will freeze until the logo is fully
//downloaded! Don't use large images (10k-50k is the suggested size).
o.UseCustomLogo("http://localhost/ocaalogo.jpg");
o.UseTCP();
o.UseMediaServer("99.xxx.xx.xx:5119");
o.UseLiveAlias("one");
o.EnableFlowControl(true, false);
InitPlayer(player);
o.Play();
window.status = "Connecting...";
}
catch (e)
{
var code = "Play(\"" + player + "\")";
setTimeout(code, 1000);
window.status = "Player object wasn't created";
}
}
//Specify which events we want to subscribe to
function InitPlayer(player)
{
var pobj = new PlayerObject(player);
pobj.object = document.getElementById(player);
pobj.eventHandler.OnStart = OnStart;
pobj.eventHandler.OnStop = OnStop;
pobj.eventHandler.OnPause = OnPause;
pobj.eventHandler.OnResize = OnResize;
pobj.initPlayer();
}
function OnLoad()
{
Play("player");
}
// Only for Mozilla browsers
function OnInstall()
{
alert("Installation succeeded, the web page will now reload.");
window.location.reload();
}
function OnStart()
{
window.status = "Playing";
}
function OnStop(toBeContinued)
{
window.status = "Stopped";
if(!toBeContinued)
{
var o = document.getElementById("player");
o.width = 320;
o.height = 240;
}
}
function OnPause(state)
{
if (state == 0)
window.status = "Paused";
else if (state == 1)
window.status = "Buffering...";
else if (state == 2)
window.status = "Seeking...";
}
function OnResize(width, height)
{
var o = document.getElementById("player");
o.width = width;
o.height = height;
}
</script>
</head>
<body bgcolor="Gainsboro" onload="OnLoad()">
<script language="javascript">
// Create player with width=320, height=240, and id="player".
po = new PlayerObject("player");
po.createPlayer(320, 240);
</script>
</body>
</html> |
|
| Back to top |
|
 |
tommybcool
Joined: 01 Sep 2006 Posts: 141 Location: Kansas
|
Posted: Tue Oct 23, 2007 4:06 am Post subject: |
|
|
| Or you can apply the code from the SDK with the Multibrowser.html which is available for download, and fill in your own x's. |
|
| Back to top |
|
 |
chrissinc
Joined: 16 Oct 2007 Posts: 26
|
Posted: Tue Oct 23, 2007 5:07 pm Post subject: |
|
|
| Good point I stole alot from that code. This one should be good to go if you want something simple to cut and paste. Thanks for your help. |
|
| Back to top |
|
 |
|