| View previous topic :: View next topic |
| Author |
Message |
local.host
Joined: 15 May 2007 Posts: 4
|
Posted: Tue May 15, 2007 7:12 am Post subject: ActiveX from behind a proxy server?? |
|
|
hi there, our company blocks all ports and filters traffic through a proxy server. They allow port 80 and we have hosted our unreal media server on that port at the remote site but when we use the activeX to connect it tries to go directly to port 80 instead of using the proxy server set in IE.
is there anyway for us to put in the code for the activeX to use the proxy server to tunnel the traffic?
regards
local.host |
|
| Back to top |
|
 |
Admin Site Admin
Joined: 04 Aug 2006 Posts: 488
|
Posted: Tue May 15, 2007 3:53 pm Post subject: |
|
|
What your company does is - it allows only HTTP traffic to port 80.
But you are trying to stream via TCP ( correct? ) - that's your mistake.
(The ActiveX control tries to connect via TCP to remote media server)
All the proxy settings in IE apply only to HTTP traffic.
The ActiveX control does respect HTTP Proxy settings set up in IE.
Therefore you simply need to stream via HTTP - install UHttpProxy on your remote Media Server (running IIS)
Admin |
|
| Back to top |
|
 |
local.host
Joined: 15 May 2007 Posts: 4
|
Posted: Tue May 15, 2007 9:43 pm Post subject: |
|
|
Thanks for the quick response .
I forgot to mention that my company wants to embed the video's in a webpage so that there's no client hence the activex approach.
Using UHttpProxy can we still embed the video and not need the streaming media client?
if we can - can you point me to an example of how to do that?
regards
local.host |
|
| Back to top |
|
 |
Admin Site Admin
Joined: 04 Aug 2006 Posts: 488
|
Posted: Tue May 15, 2007 10:01 pm Post subject: |
|
|
Nothing changes on the client side when you use UHttpProxy.
Simply call UseHTTP method of the ActiveX control instead of UseTCP.
Our TechTV samples on demo page work exactly this way.
http://www.umediaserver.net/demos.html
You should be able to see them behind your proxy server.
Admin |
|
| Back to top |
|
 |
local.host
Joined: 15 May 2007 Posts: 4
|
Posted: Tue May 15, 2007 11:38 pm Post subject: |
|
|
Hey Admin,
I've had a look at the demo's and been reading through the documentation but I must have something wrong setup.
I've got the streaming server setup on tcp port 5119 and have installed the UHttpProxy under the default website into a UHttpProxy virtual folder running on port 80.
here are my code examples for calling the video's:
Running over TCP | Code: |
o.UseTCP();
o.UseMediaServer("preview.site.com:5119");
o.UseFile("MediaRoot\\test.wmv");
|
this works from home and not from work due to the proxying as you mentioned before
Running over HTTP | Code: |
o.UseHTTP();
o.UseMediaServer("preview.site.com");
o.UseFile("MediaRoot\\test.wmv");
|
this does not work from either home or work. All it does is give a 404 error. I am certain it has something to do with how UHttpProxy is setup or how the page is calling it - but I cannot find any examples on how to setup the UHttpProxy other than just run the msi.
I tried copying and pasting from the example that you mentioned but it still gave the 404 error - hence my suspision that its a server configuration problem.
here is the full code that I am using in the webpage to call the HTTP session.
| Code: |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title></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);
o.EnableFlowControl(false, true);
o.UseHTTP();
o.UseMediaServer("preview.site.com");
o.UseFile("MediaRoot\\test.wmv");
InitPlayer(player);
o.Play();
window.status = "Connecting...";
}
catch (e)
{
var code = "Play(\"" + player + "\")";
setTimeout(code, 1000);
window.status = "Downloading player object...";
}
}
//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";
}
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;
window.resizeTo(width + 30, height + 200);
}
</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>
|
Can you please help me to understand where I am going wrong?
regards
local.host |
|
| Back to top |
|
 |
Admin Site Admin
Joined: 04 Aug 2006 Posts: 488
|
Posted: Wed May 16, 2007 2:15 am Post subject: |
|
|
Yes, something is wrong with UHttpProxy.
I think 404 indicates that it has to do with subdomain you are using:
preview.site.com
Did you try just site.com ?
UHttpProxy is installed in the default website. What is your default website?
You may need to install UHttpProxy manually under preview.site.com, follow instructions on our FAQ page.
Admin |
|
| Back to top |
|
 |
local.host
Joined: 15 May 2007 Posts: 4
|
Posted: Wed May 16, 2007 3:55 am Post subject: |
|
|
Hey its working!! Its Working!!!!!
the preview.site.com was actually the DNS name associated with the default site, however I went back and followed the FAQ absolutely to the letter - i.e. I moved the UHttpProxy.dll file to c:\inetpub\wwwroot\UhttpProxy folder and made a UHttpProxy Virtual Directory pointing here (previously it was in another folder).
Maybe there is a hardcoded settings for the inetpub?? as soon as I moved in into this virtual and updated the included file location for allowed ISAPI scripts in windows 2003 server it worked like a charm!
Thanks Admin for your patience and perseverence..
I'm off to stream some data!  |
|
| Back to top |
|
 |
bostunes
Joined: 20 Feb 2007 Posts: 17
|
Posted: Fri Jun 22, 2007 5:19 am Post subject: |
|
|
| It was most likely a permissions issue... |
|
| Back to top |
|
 |
|