| View previous topic :: View next topic |
| Author |
Message |
carl669
Joined: 07 Nov 2006 Posts: 7
|
Posted: Tue Nov 07, 2006 10:27 pm Post subject: Automatically go full screen? |
|
|
| 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 |
|
 |
Admin Site Admin
Joined: 04 Aug 2006 Posts: 488
|
Posted: Wed Nov 08, 2006 7:42 pm Post subject: |
|
|
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 |
|
 |
Admin Site Admin
Joined: 04 Aug 2006 Posts: 488
|
Posted: Wed Nov 08, 2006 7:56 pm Post subject: |
|
|
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 |
|
 |
carl669
Joined: 07 Nov 2006 Posts: 7
|
Posted: Wed Nov 15, 2006 8:07 pm Post subject: |
|
|
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 |
|
 |
carl669
Joined: 07 Nov 2006 Posts: 7
|
Posted: Wed Nov 15, 2006 8:12 pm Post subject: |
|
|
| also, I didn't see a DisplayFullScreen method...I'm using ViewFullScreenSize. |
|
| Back to top |
|
 |
Admin Site Admin
Joined: 04 Aug 2006 Posts: 488
|
Posted: Wed Nov 15, 2006 8:22 pm Post subject: |
|
|
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 |
|
 |
carl669
Joined: 07 Nov 2006 Posts: 7
|
Posted: Wed Nov 15, 2006 8:41 pm Post subject: |
|
|
| 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 |
|
 |
mitchstein
Joined: 03 Sep 2006 Posts: 72 Location: phila pa
|
Posted: Mon Nov 27, 2006 5:56 am Post subject: |
|
|
| 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 |
|
 |
Admin Site Admin
Joined: 04 Aug 2006 Posts: 488
|
Posted: Sat Feb 10, 2007 4:32 pm Post subject: |
|
|
Version 5 SDK has sample page that does this.
Admin |
|
| Back to top |
|
 |
spiral77
Joined: 12 Feb 2007 Posts: 3
|
Posted: Mon Feb 12, 2007 8:30 am Post subject: |
|
|
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 |
|
 |
sstepanski
Joined: 13 Nov 2007 Posts: 2
|
Posted: Thu Nov 15, 2007 6:44 pm Post subject: Where and exactly what to insert for ViewFullScreenSize |
|
|
| 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 |
|
 |
Admin Site Admin
Joined: 04 Aug 2006 Posts: 488
|
Posted: Thu Nov 15, 2007 8:56 pm Post subject: |
|
|
SDK has a sample page:
AutoLoad_MultiBrowser_FullScreenOnStart.htm
that does exactly that.
Admin |
|
| Back to top |
|
 |
sstepanski
Joined: 13 Nov 2007 Posts: 2
|
Posted: Sun Nov 18, 2007 1:59 pm Post subject: Playlist and fullscreen |
|
|
| 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 |
|
 |
Admin Site Admin
Joined: 04 Aug 2006 Posts: 488
|
Posted: Thu Dec 13, 2007 5:40 am Post subject: |
|
|
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 |
|
 |
|