DevalVR support

 

It is currently Thu May 23, 2013 12:38 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Automatic close standalone player
PostPosted: Wed Jul 15, 2009 9:52 pm 
Offline

Joined: Wed Jul 15, 2009 9:26 pm
Posts: 3
Hello,

I want to use the standalone player as a part of a diashow. For to make this possible I need to play the sequence only one time and to close the standalone player after it. How can I do it?

Thanks :)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 16, 2009 11:33 am 
Offline
I only was walking somewhere...
User avatar

Joined: Tue Aug 09, 2005 1:55 am
Posts: 2007
Hi Klaus! :)

You can create a timer to start the sequence and another timer to close the player. For example, if the duration of your sequence is 20 seconds, you can start the sequence in 0.5 seconds and close the player after 20.5 seconds:

Code:
(pano)
{
  type=MOV;
  file=panorama.mov;

  settimer=timeriniseq,1, 0.5, "IniSequence(0,1);LoopSequence(0,1);PlaySequence(0,sequence1);";
  settimer=timerclose,1, 20.5, "PlayerWindow("close");";
}

(sequence1)
{
   type=SEQUENCE;
   file=sequence1.txt;
}


regards!


Top
 Profile E-mail  
 
 Post subject: Automatic close standalone player
PostPosted: Tue Jul 21, 2009 7:49 am 
Offline

Joined: Wed Jul 15, 2009 9:26 pm
Posts: 3
Hola Riero,

muchas gracias for the answer It works good. I have 2 questions about this answer:

1. Is it possible to start the timer after the loading is finished?
2. Which possible parameters have the command "Player Window"? Is with this command possible to change the size of the window during the sequence?

Regards

klaus


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 22, 2009 5:02 pm 
Offline
I only was walking somewhere...
User avatar

Joined: Tue Aug 09, 2005 1:55 am
Posts: 2007
Hi Klaus,

1. Yes, you can use the instruction PROPERTYCODE2 to start the timer when progress is 100%. You can define the timer with 0 as initial state, and use Show() to enable it:

Code:
(pano)
{
  type=MOV;
  file=panorama.mov;

   propertycode2=code1,1, "progress",100, "Show("_this_","timeriniseq",1); Show("_this_","timerclose",1);";

  settimer=timeriniseq,0, 0.5, "IniSequence(0,1);LoopSequence(0,1);PlaySequence(0,sequence1);";
  settimer=timerclose,0, 20.5, "PlayerWindow("close");";
}

(sequence1)
{
   type=SEQUENCE;
   file=sequence1.txt;
}




2. With PlayerWindow() it's possible to start some functions of the window, this is useful to create interfaces http://www.devalvr.com/paginas/soporte/ ... AYERWINDOW . But, at this moment it's not possible to change the size of the window. Maybe I could add a new option to do it with two parameters for width and height...

regards!


Top
 Profile E-mail  
 
 Post subject: Automatic close standalone player
PostPosted: Sun Aug 02, 2009 7:18 pm 
Offline

Joined: Wed Jul 15, 2009 9:26 pm
Posts: 3
Hola Fiero,

1. With propertycode2 I have the result which I want. Great!
2. I made some tests with different parameters of the PLAYERWINDOW command, but I had no success. How works for example MOVE?

Regards


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 02, 2009 7:35 pm 
Offline
I only was walking somewhere...
User avatar

Joined: Tue Aug 09, 2005 1:55 am
Posts: 2007
Hi Klaus,

Some window fuctions stop its behavior with mouse button release, for this reason it's better to configute these functions with "click" event, for example "move" function. See the scripts of MLB and QTPlayer skins http://www.devalvr.com/paginas/interfaces/index.html

regards!


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group