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 

V4 streaming live content to firefox/ie

 
Post new topic   Reply to topic    Unreal Media Server Forum Index -> Streaming Files
View previous topic :: View next topic  
Author Message
revere



Joined: 26 Apr 2007
Posts: 3

PostPosted: Thu Apr 26, 2007 1:20 pm    Post subject: V4 streaming live content to firefox/ie Reply with quote

i have the setup with V4 working perfectly in an ie only webpage, however when i use the html to have it work with ie & firefox it fails to find the live stream in either browser.
the error just says "please specify media resource name" which makes me believe that it isnt using the variable 'UseLiveAlias'

code is -



Code:
<html>
<head>
<title>test</title>
<script language="javascript">

function Play(UPlayer)
{
   try
   {
      var o = document.getElementById(UPlayer);
      
      //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.UseTCP();
      o.UseMediaServer("194.168.255.60:5119");
        o.UseCustomLogo("http://194.168.255.60/logofinal.jpg");
       o.SetLiveBufferingMode(true, 10);
       o.UseLiveAlias("BLTVONLINE");
      //Uncomment the following lines to prohibit context menu and flow bar appearance
      //o.EnableContextMenu(false);
      //o.EnableFlowControl(false, true);

      o.Play();
      window.status = "Connecting...";
   }
   catch (e)
   {
      window.status = "Player object wasn't created";
   }
}

function OnLoad()
{
   Play("UPlayer");
}

// 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("UPlayer");
           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("UPlayer");
   o.width  = width;
   o.height = height;
}
        </script>

<body>
   </head>

   <body>
   

      <b>

   <script type="text/javascript" src="umediaplayer4.js"></script>
</head>

<body>
   <script language="javascript">
 
   
    // Create player with width=320, height=240, and id="UPlayer".
    // Attach custom event handlers from this web page
    var po = new PlayerObject("UPlayer");
    po.eventHandler.OnStart = OnStart;
    po.eventHandler.OnStop = OnStop;
    po.eventHandler.OnPause = OnPause;
    po.eventHandler.OnResize = OnResize;
    po.createPlayer(320, 240);
    po.initPlayer();


   </script>
</body>

</html>

the settings used are EXACTLY those used in the ie only form and they work perfectly then.
any ideas of where im going wrong would be appreciated.
Back to top
View user's profile Send private message
Admin
Site Admin


Joined: 04 Aug 2006
Posts: 488

PostPosted: Thu Apr 26, 2007 3:53 pm    Post subject: Reply with quote

This is an old code and you need to upgrade to new code instead of fixing this one;

Take the autoload page from our SDK package downloadable from
http://www.umediaserver.net/source.html

and simply replace your alias name and ip address.

admin
Back to top
View user's profile Send private message Send e-mail
revere



Joined: 26 Apr 2007
Posts: 3

PostPosted: Thu Apr 26, 2007 9:00 pm    Post subject: Reply with quote

the new one from the sdk was the first i tried - it didnt even show the player
the old code however did
and all is well as i now have it working properly(using the old code)
Back to top
View user's profile Send private message
Admin
Site Admin


Joined: 04 Aug 2006
Posts: 488

PostPosted: Thu Apr 26, 2007 10:12 pm    Post subject: Reply with quote

Quote:
the new one from the sdk was the first i tried - it didnt even show the player


You probably forgot to put umediaplayer5.js file in the same folder where your web page is located.

Admin
Back to top
View user's profile Send private message Send e-mail
revere



Joined: 26 Apr 2007
Posts: 3

PostPosted: Fri Apr 27, 2007 3:55 pm    Post subject: Reply with quote

nope, it was there, just wouldnt work period whereas the old script at least showed a player and eventually worked
Back to top
View user's profile Send private message
Admin
Site Admin


Joined: 04 Aug 2006
Posts: 488

PostPosted: Sat Apr 28, 2007 12:31 am    Post subject: Reply with quote

Well, I don't know what was your mistake but the new script and new ActiveX control is the one recommended for use; performs better than v4.

Refer to SDK or our demo page to get sample pages.

Admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Unreal Media Server Forum Index -> Streaming Files 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