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 

Playing a playlist completely fullscreen

 
Post new topic   Reply to topic    Unreal Media Server Forum Index -> Experience and troubleshooting
View previous topic :: View next topic  
Author Message
paranone



Joined: 12 Dec 2007
Posts: 2

PostPosted: Wed Dec 12, 2007 11:51 pm    Post subject: Playing a playlist completely fullscreen Reply with quote

Hi,

So I work at a (small) computer store and we have videos showing on all the computers we have in the store but what I would like to do (thanks to Unreal Media Server Smile ) is instead of copying all the files to each computer, have the same videos multicasted to all computers at the same time.

My problem is I cannot get the videos to be always displayed fullscreen either with the Streaming Media Player or the ActiveX control (which I understand are the only 2 ways to playback a multicast stream - unicast is a no no as it takes too much bandwith with hd videos).
The player goes back to windowed mode at every new video and the ActiveX control tends to mess up when I make it go back to fullscreen at every new video using ViewFullscreenSize in the OnStart function without the if statement. It shows only the corner of the video, although if I put it fullscreen manually at every new video it doesn't seem to have any problem... (but then that is not a solution).

I would be very thankful if someone could come up with a solution as I've been fiddling with the program for a few days and it's the only problem that prevents me from using it.


Jon
Back to top
View user's profile Send private message
Admin
Site Admin


Joined: 04 Aug 2006
Posts: 488

PostPosted: Thu Dec 13, 2007 5:33 am    Post subject: Reply with quote

What you can do is:

Play using Streaming Media Player.
Instead of using "Full Screen" mode, maximize the player.
That gives you almost the same effect as "Full Screen".

You will see that when player is maximized, it will stay maximized forever, without switching to normal size on the next movie in playlist.

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


Joined: 04 Aug 2006
Posts: 488

PostPosted: Thu Dec 13, 2007 5:35 am    Post subject: Reply with quote

Here is the webpage that plays PlayList in FullScreen mode:

<html>
<head>
<script type="text/javascript" src="umediaplayer5.js"></script>
<script language="javascript">

//Global player object
var po;
var bFirstTime = 1;

function Play(player)
{
try
{
var o = document.getElementById(player);

o.UseTCP();
o.UseMediaServer("localhost");
o.UseFilePlaylist("test");

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()
{
var o = document.getElementById("player");
window.status = "Playing";

if(bFirstTime == 1)
{
o.ViewFullScreenSize();
bFirstTime = 0;
}
}

function OnStop(toBeContinued)
{
window.status = "Stopped";
if(!toBeContinued)
{
var o = document.getElementById("player");
o.width = 320;
o.height = 240;
}
else
bFirstTime = 1;
}

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)
{

}
</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
View user's profile Send private message Send e-mail
paranone



Joined: 12 Dec 2007
Posts: 2

PostPosted: Thu Dec 13, 2007 3:06 pm    Post subject: Reply with quote

Thank you very much, the html code works perfectly!
(But please stop telling people that maximizing the window is almost the same as playing fullscreen...)

Now I noticed something, although it's not a problem for me because I don't need it, but the sound doesn't seem to play right on any of the videos I multicasted, either with the player or with the activex control, is it a known problem?


Jon
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 -> Experience and troubleshooting 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