Unreal Media Server Forum Index Unreal Media Server
ATTENTION! THIS FORUM IS READ ONLY AS OF SEPTEMBER 1 2009.

PLEASE POST QUESTIONS TO OUR NEW FORUM
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ActiveX from behind a proxy server??

 
Post new topic   Reply to topic    Unreal Media Server Forum Index -> Web publishing - ActiveX control and Cross-Browser plugin
View previous topic :: View next topic  
Author Message
local.host



Joined: 15 May 2007
Posts: 4

PostPosted: Tue May 15, 2007 7:12 am    Post subject: ActiveX from behind a proxy server?? Reply with quote

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
View user's profile Send private message
Admin
Site Admin


Joined: 04 Aug 2006
Posts: 488

PostPosted: Tue May 15, 2007 3:53 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
local.host



Joined: 15 May 2007
Posts: 4

PostPosted: Tue May 15, 2007 9:43 pm    Post subject: Reply with quote

Thanks for the quick response Smile .

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
View user's profile Send private message
Admin
Site Admin


Joined: 04 Aug 2006
Posts: 488

PostPosted: Tue May 15, 2007 10:01 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
local.host



Joined: 15 May 2007
Posts: 4

PostPosted: Tue May 15, 2007 11:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
Admin
Site Admin


Joined: 04 Aug 2006
Posts: 488

PostPosted: Wed May 16, 2007 2:15 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
local.host



Joined: 15 May 2007
Posts: 4

PostPosted: Wed May 16, 2007 3:55 am    Post subject: Reply with quote

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! Smile
Back to top
View user's profile Send private message
bostunes



Joined: 20 Feb 2007
Posts: 17

PostPosted: Fri Jun 22, 2007 5:19 am    Post subject: Reply with quote

It was most likely a permissions issue...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Unreal Media Server Forum Index -> Web publishing - ActiveX control and Cross-Browser plugin All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.6 © 2001, 2002 phpBB Group