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 

Automatically go full screen?

 
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
carl669



Joined: 07 Nov 2006
Posts: 7

PostPosted: Tue Nov 07, 2006 10:27 pm    Post subject: Automatically go full screen? Reply with quote

Is there any way to make the embedded player automatically display full screen? (instead of making the user right click on the video, size->full screen)
Back to top
View user's profile Send private message
Admin
Site Admin


Joined: 04 Aug 2006
Posts: 488

PostPosted: Wed Nov 08, 2006 7:42 pm    Post subject: Reply with quote

There is a method in ActiveX control (what you call embedded player)
to go to FullScreen mode.
Download the SDK and go to ActiveX control section.

You can't start in Full Screen mode from the very beginning. However, you can do it 1 second from the beginning:

In your OnStart Javascript function on the web page, create a timer for 1 second; in timer function call DisplayFullScreen method.

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


Joined: 04 Aug 2006
Posts: 488

PostPosted: Wed Nov 08, 2006 7:56 pm    Post subject: Reply with quote

More on that.

In the next version 5 you will be able to go to FullScreen from the beginning, using the same method of ActiveX control.
You will simply need to call this method from OnStart Javascript function itself, instead of creating a timer which is a must for version 4.

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



Joined: 07 Nov 2006
Posts: 7

PostPosted: Wed Nov 15, 2006 8:07 pm    Post subject: Reply with quote

Thanks. That does work for going fullscreen, but, there's still a problem.

When playback starts, it automatically goes fullscreen, however, if I want to exit fullscreen (ctrl+esc), it reduces the video size to 50%. In the context menu, the 100% option is disabled. However, if I first size it to 200%, then I can go back and size it to 100%.

Any suggestions?
Back to top
View user's profile Send private message
carl669



Joined: 07 Nov 2006
Posts: 7

PostPosted: Wed Nov 15, 2006 8:12 pm    Post subject: Reply with quote

also, I didn't see a DisplayFullScreen method...I'm using ViewFullScreenSize.
Back to top
View user's profile Send private message
Admin
Site Admin


Joined: 04 Aug 2006
Posts: 488

PostPosted: Wed Nov 15, 2006 8:22 pm    Post subject: Reply with quote

Carl,

ViewFullScreenSize is the right name.

This performance is the best you can do with current version 4; all these issues will be sorted with next version 5.

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



Joined: 07 Nov 2006
Posts: 7

PostPosted: Wed Nov 15, 2006 8:41 pm    Post subject: Reply with quote

Thanks. Have you heard any issues about using this way in Mozilla? Works perfect in IE 6 and 7, but Mozilla never goes fullscreen.
Back to top
View user's profile Send private message
mitchstein



Joined: 03 Sep 2006
Posts: 72
Location: phila pa

PostPosted: Mon Nov 27, 2006 5:56 am    Post subject: Reply with quote

Admin wrote:
More on that.

In the next version 5 you will be able to go to FullScreen from the beginning, using the same method of ActiveX control.
You will simply need to call this method from OnStart Javascript function itself, instead of creating a timer which is a must for version 4.

Admin


Is version 5 still ontrack for a december/january release?

`Mitch
_________________
http://www.garageaction.com
http://www.tvbydemand.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Admin
Site Admin


Joined: 04 Aug 2006
Posts: 488

PostPosted: Sat Feb 10, 2007 4:32 pm    Post subject: Reply with quote

Version 5 SDK has sample page that does this.

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



Joined: 12 Feb 2007
Posts: 3

PostPosted: Mon Feb 12, 2007 8:30 am    Post subject: Reply with quote

I tried the fullscreen example in 1 html page it work....but when i put the code in a popup window, the fullscreen does not work.

my autostart video also does not work.


currently i can only start the video in my player by clicking the start button. It does not auto start like the samples.
Back to top
View user's profile Send private message
sstepanski



Joined: 13 Nov 2007
Posts: 2

PostPosted: Thu Nov 15, 2007 6:44 pm    Post subject: Where and exactly what to insert for ViewFullScreenSize Reply with quote

I can't seem to get full screen to work. I am using a playlist html from skd but I can't figure out what and where to put ViewFullScreenSize. I tried to take some code from the full screen html and insert it but that isn't doing it.
Back to top
View user's profile Send private message
Admin
Site Admin


Joined: 04 Aug 2006
Posts: 488

PostPosted: Thu Nov 15, 2007 8:56 pm    Post subject: Reply with quote

SDK has a sample page:
AutoLoad_MultiBrowser_FullScreenOnStart.htm

that does exactly that.

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



Joined: 13 Nov 2007
Posts: 2

PostPosted: Sun Nov 18, 2007 1:59 pm    Post subject: Playlist and fullscreen Reply with quote

I tried to use the mentioned html to create a session that will play a playlist in full screen. The html does autoload and play the test.avi in full screen but it doesn't use a play list. I tried inserting the playlist code to the autoload full screen html but I can't get it to work. Any suggestions or examples?
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:40 am    Post subject: Reply with quote

Here is the webpage that plays Playlist Fullscreen:

<html>
<head>
<title>Test.avi FullScreen OnStart</title>
<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
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