Attract-Mode Support Forum

Attract-Mode Support => General => Topic started by: steve88 on May 12, 2021, 08:59:10 AM

Title: Screensaver auto advance time (basic movie)
Post by: steve88 on May 12, 2021, 08:59:10 AM
Hello everyone! I would like to ensure that in screen saver mode, after a few seconds the video is replaced with the following. This is because videos often last up to 1 minute, and since there are so many games I would like them to flow faster. Do you think it is possible? If so, how? Thank you all!
Title: Re: Screensaver auto advance time (basic movie)
Post by: hermine.potter on May 14, 2021, 01:33:55 PM
do you mean:
the video should change after a specific time (instead of complete it / play it to end)?

for example: a game video file (with 60 seconds playtime) have to end after 10 seconds > then the next video plays (10 seconds long) > next video after 10 seconds > and so on?
Title: Re: Screensaver auto advance time (basic movie)
Post by: steve88 on May 17, 2021, 04:37:43 AM
exactly, I would like the videos to advance every x seconds regardless of the length of the video. I think it is a very useful feature, as if a video lasted many minutes, the demonstration functionality of the screensaver would be rendered almost useless.
Title: Re: Screensaver auto advance time (basic movie)
Post by: hermine.potter on May 18, 2021, 10:35:21 AM
the sourcecode of screensaver is found here:
your_AM_folder\screensaver\screensaver.nut

there exists various variables:
in_time, out_time, duration, elapsed, start_time, ttime, and so on.

Probably if one of these variables is set to 10000 (10 seconds) or via a simple math calculation gives the result of 10 for endtime, it will work.
But I can't program squirrel language and can't help.
Title: Re: Screensaver auto advance time (basic movie)
Post by: steve88 on May 18, 2021, 12:28:24 PM
thanks! Unfortunately I don't know how to do it.  :'(
Title: Re: Screensaver auto advance time (basic movie)
Post by: kent79 on May 18, 2021, 10:28:04 PM
You may check my theme coding. The answer is here.  ;D
http://forum.attractmode.org/index.php?topic=3917.0