Re: Waiting until a player is loaded

2006-10-02 Thread Trevor DeVore

On Oct 1, 2006, at 2:04 AM, Klaus Major wrote:

And with the new version (already uploaded this one, Trevor?) there  
is no need for exporting a thumbnail
to an external file, just put it into a variable and do whatever  
you want with the data.


I don't know that the version that grabs thumbnails from files on  
disk and stores the data in a variable is uploaded yet.  One of these  
days...


--
Trevor DeVore
Blue Mango Learning Systems - www.bluemangolearning.com
[EMAIL PROTECTED]


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Waiting until a player is loaded

2006-10-01 Thread J. Landman Gay

Sivakatirswami wrote:

Oh.. yes,  fun with QuickTime and players...

I'm deep into this myself, with remote URL's, streaming media
-- Windows boulders and sand traps...

Try this -- assumes your screen shot could be one or two frames in --
and -- you are not in a big rush

untested hack, that avoids trying to
resolve the nagging  "it should work, but doesn't"
from the school of  "WHEW" (WHatEverWorks)

set filename  of player "newPlayer"
start player "newPlayer"
stop player "newPlayer"

# in the player itself.

on playStopped
# take your screen shot now
# my goodness, it *must* be rendered  in the
# VRAM at this point, bien sur! (Mauritian Creole "for sure!)   
end playStopped


This is even better, and works fine. I didn't have to use the 
playstopped message, all I have to do is:


  start player "temp"
  stop player "temp"

This removes the jerkiness that a wait command causes, always displays 
the movie image, makes a very smooth snapshot visually, and works great. 
WHEW indeed. :)



--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Waiting until a player is loaded

2006-10-01 Thread Sivakatirswami

Oh.. yes,  fun with QuickTime and players...

I'm deep into this myself, with remote URL's, streaming media
-- Windows boulders and sand traps...

Try this -- assumes your screen shot could be one or two frames in --
and -- you are not in a big rush

untested hack, that avoids trying to
resolve the nagging  "it should work, but doesn't"
from the school of  "WHEW" (WHatEverWorks)

set filename  of player "newPlayer"
start player "newPlayer"
stop player "newPlayer"

# in the player itself.

on playStopped
# take your screen shot now
# my goodness, it *must* be rendered  in the
# VRAM at this point, bien sur! (Mauritian Creole "for sure!)  
end playStopped

aum
skts -- all ears on anything Re-QT players




J. Landman Gay wrote:
I am trying to load a series of movies into players in a loop, in order 
to make thumbnails. Inside a repeat loop, I set each player's filename, 
then take a snapshot of it to get a thumbnail image. This works just 
fine when I step through it in the debugger.


However, if I let the loop run at its natural speed, I get a bunch of 
blank snapshots, either because the content isn't fully loaded before 
the script continues, or because the screen isn't refreshing (I can't 
tell which.) I need a way to force the loop to wait until the player is 
fully loaded, and also something that will refresh the screen so that a 
snapshot has something to take a picture of.


I have tried locking and unlocking the screen to force a redraw, tried 
"go this card" to force a redraw, tried waiting various amounts of time 
both with and without messages, tried "set the currentTime of player 1 
to the duration of player 1" to force a full load, and everything else I 
can think of. In no case does the player content display. I am not sure 
if this is because the screen simply isn't redrawing (likely), or 
because the content isn't fully loading before the script continues 
(possible.)


Anyone know how to solve this?



--
Om shanti
(In  Peace)

Sivakatirswami
www.himalayanacademy.com

Get Hinduism Today Digital Edition. It's Free!
http://www.hinduismtoday.com/digital/

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Waiting until a player is loaded

2006-10-01 Thread sims

At 1:04 PM -0500 10/1/06, J. Landman Gay wrote:

Eric Chatonet wrote:


 Obviously you tried all methods but without starting the player:
 PlayLoudness > zero
 repeat > load;start;[wait x ms];stop;set currentTime to zero;snapshot...
 Not tested ;-)


You're a genuis, it works!


That genius, Eric Chatonet, will be presenting the following at the EuroRevCon!

Crystal Clear Design = Well Thought Out Stacks
"Whatever your level, you can produce extremely user-friendly 
Revolution applications quickly and easily. This lecture will focus 
on what you need to consider during your design process and then 
proceed, in a hands-on manner, to demonstrate and teach you how to 
make these design principles a reality!


Will be covered: What is ergonomics; How to dissect your user's needs 
and processes; How to design for multiple platforms; How to plan your 
layout in advance; Designing and building a well thought out code 
architecture; Designing for a cross-language, multi-cultural and a 
psychologically diverse user base.
You will learn how to make and use skins, custom drawings and 
controls, multilingual stacks, user preferences, help settings, 
unique drag and drops, and other secrets you can easily master to 
achieve your goals.


Discover, in practice, how to bring your design and development 
process to a whole new level!"


Seats are still available - send me an email if you are interested in 
attending.


ciao,
sims

European Rev Conference  2006
www.techietours.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Waiting until a player is loaded

2006-10-01 Thread J. Landman Gay

Klaus Major wrote:

> can't you just use Trevors extraordinary EnhancedQT External for this
> (and other extremely handy) task(s)?
> No problems in a loop :-)

Eric had the solution, so I don't have to now. The QT external would 
have been a little bit overkill, since I am only loading the player to 
get a snapshot and then I delete the player afterward. The stack doesn't 
actually need to run the players, it just stores a snapshot of them for 
visual reference.


But I'm good to go now, and very appreciative of all the suggestions. 
Thanks everyone.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Waiting until a player is loaded

2006-10-01 Thread J. Landman Gay

Eric Chatonet wrote:
>
> Obviously you tried all methods but without starting the player:
> PlayLoudness > zero
> repeat > load;start;[wait x ms];stop;set currentTime to zero;snapshot...
> Not tested ;-)

You're a genuis, it works! It's a little jerky, but I don't care. I 
added these lines to the loop:


  start player "temp"
  wait until the currentTime of player "temp" > 1

And it displays. :) Thank you!


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Waiting until a player is loaded

2006-10-01 Thread Mark Smith
Would  making something else happen in the loop force the screen to  
refresh? Perhaps setting and un-setting the hilite of a button or  
something.


Best,

Mark

On 1 Oct 2006, at 06:42, J. Landman Gay wrote:


Dar Scott wrote:
>
> On Sep 30, 2006, at 8:05 PM, J. Landman Gay wrote:
>
>> However, if I let the loop run at its natural speed, I get a  
bunch of
>> blank snapshots, either because the content isn't fully loaded  
before
>> the script continues, or because the screen isn't refreshing (I  
can't
>> tell which.) I need a way to force the loop to wait until the  
player

>> is fully loaded, and also something that will refresh the screen so
>> that a snapshot has something to take a picture of.
>
> Just wild ideas that might have to be combined with other  
things:  You
> can try a wait.  You can change the loop to a send cycle.  You  
can do

> something that directly depends on the content being loaded.

Tried all varieties of "wait" but they didn't work. I'd thought of  
doing a "send" cycle but was hoping not to have to rewrite if  
anyone can think of anything else. Might have to do it though.


I also tried to set the currentTime of the movie to the duration,  
which would force it to load in its entirety. Didn't work. That's  
one reason I think it may be more of a refresh problem than a  
loading problem.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Waiting until a player is loaded

2006-10-01 Thread Klaus Major

Hi Jaqueline,

I am trying to load a series of movies into players in a loop, in  
order to make thumbnails. Inside a repeat loop, I set each player's  
filename, then take a snapshot of it to get a thumbnail image. This  
works just fine when I step through it in the debugger.


However, if I let the loop run at its natural speed, I get a bunch  
of blank snapshots, either because the content isn't fully loaded  
before the script continues, or because the screen isn't refreshing  
(I can't tell which.) I need a way to force the loop to wait until  
the player is fully loaded, and also something that will refresh  
the screen so that a snapshot has something to take a picture of.


I have tried locking and unlocking the screen to force a redraw,  
tried "go this card" to force a redraw, tried waiting various  
amounts of time both with and without messages, tried "set the  
currentTime of player 1 to the duration of player 1" to force a  
full load, and everything else I can think of. In no case does the  
player content display. I am not sure if this is because the screen  
simply isn't redrawing (likely), or because the content isn't fully  
loading before the script continues (possible.)


Anyone know how to solve this?


can't you just use Trevors extraordinary EnhancedQT External for this  
(and other extremely handy) task(s)?

No problems in a loop :-)

And with the new version (already uploaded this one, Trevor?) there  
is no need for exporting a thumbnail
to an external file, just put it into a variable and do whatever you  
want with the data.



Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com


Regards

Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Waiting until a player is loaded

2006-10-01 Thread Eric Chatonet

Hello Jacque,

Obviously you tried all methods but without starting the player:
PlayLoudness > zero
repeat > load;start;[wait x ms];stop;set currentTime to zero;snapshot...
Not tested ;-)

Le 1 oct. 06 à 04:05, J. Landman Gay a écrit :

I am trying to load a series of movies into players in a loop, in  
order to make thumbnails. Inside a repeat loop, I set each player's  
filename, then take a snapshot of it to get a thumbnail image. This  
works just fine when I step through it in the debugger.


However, if I let the loop run at its natural speed, I get a bunch  
of blank snapshots, either because the content isn't fully loaded  
before the script continues, or because the screen isn't refreshing  
(I can't tell which.) I need a way to force the loop to wait until  
the player is fully loaded, and also something that will refresh  
the screen so that a snapshot has something to take a picture of.


I have tried locking and unlocking the screen to force a redraw,  
tried "go this card" to force a redraw, tried waiting various  
amounts of time both with and without messages, tried "set the  
currentTime of player 1 to the duration of player 1" to force a  
full load, and everything else I can think of. In no case does the  
player content display. I am not sure if this is because the screen  
simply isn't redrawing (likely), or because the content isn't fully  
loading before the script continues (possible.)



Best Regards from Paris,
Eric Chatonet
 
--

http://www.sosmartsoftware.com/[EMAIL PROTECTED]/


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Waiting until a player is loaded

2006-09-30 Thread J. Landman Gay

Dar Scott wrote:
>
> On Sep 30, 2006, at 8:05 PM, J. Landman Gay wrote:
>
>> However, if I let the loop run at its natural speed, I get a bunch of
>> blank snapshots, either because the content isn't fully loaded before
>> the script continues, or because the screen isn't refreshing (I can't
>> tell which.) I need a way to force the loop to wait until the player
>> is fully loaded, and also something that will refresh the screen so
>> that a snapshot has something to take a picture of.
>
> Just wild ideas that might have to be combined with other things:  You
> can try a wait.  You can change the loop to a send cycle.  You can do
> something that directly depends on the content being loaded.

Tried all varieties of "wait" but they didn't work. I'd thought of doing 
a "send" cycle but was hoping not to have to rewrite if anyone can think 
of anything else. Might have to do it though.


I also tried to set the currentTime of the movie to the duration, which 
would force it to load in its entirety. Didn't work. That's one reason I 
think it may be more of a refresh problem than a loading problem.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Waiting until a player is loaded

2006-09-30 Thread Dar Scott


On Sep 30, 2006, at 8:05 PM, J. Landman Gay wrote:

However, if I let the loop run at its natural speed, I get a bunch  
of blank snapshots, either because the content isn't fully loaded  
before the script continues, or because the screen isn't refreshing  
(I can't tell which.) I need a way to force the loop to wait until  
the player is fully loaded, and also something that will refresh  
the screen so that a snapshot has something to take a picture of.


Just wild ideas that might have to be combined with other things:   
You can try a wait.  You can change the loop to a send cycle.  You  
can do something that directly depends on the content being loaded.


Dar
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Waiting until a player is loaded

2006-09-30 Thread J. Landman Gay

Phil Davis wrote:
> Jackie,
>
> Have you tried setting the filename of the players to empty between
> movies? I've seen that solve similar problems.

Good idea, but these are all different players, each created on the fly 
as needed. It is looking to me like a combination of both OS X, which 
doesn't refresh the screen very often, and the Rev engine, which doesn't 
like to refresh the screen at all during a tight loop. Each player is on 
a different card, newly created and then loaded. But the screen isn't 
refreshing, so the snapshot takes a picture of nothing but the white 
space where the player should be. Stepping through the debugger works, 
because that forces the screen to refresh after each line of script. I 
need to do that inside the loop.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Waiting until a player is loaded

2006-09-30 Thread Phil Davis

Jackie,

Have you tried setting the filename of the players to empty between movies? I've 
seen that solve similar problems.


Phil Davis


J. Landman Gay wrote:
I am trying to load a series of movies into players in a loop, in order 
to make thumbnails. Inside a repeat loop, I set each player's filename, 
then take a snapshot of it to get a thumbnail image. This works just 
fine when I step through it in the debugger.


However, if I let the loop run at its natural speed, I get a bunch of 
blank snapshots, either because the content isn't fully loaded before 
the script continues, or because the screen isn't refreshing (I can't 
tell which.) I need a way to force the loop to wait until the player is 
fully loaded, and also something that will refresh the screen so that a 
snapshot has something to take a picture of.


I have tried locking and unlocking the screen to force a redraw, tried 
"go this card" to force a redraw, tried waiting various amounts of time 
both with and without messages, tried "set the currentTime of player 1 
to the duration of player 1" to force a full load, and everything else I 
can think of. In no case does the player content display. I am not sure 
if this is because the screen simply isn't redrawing (likely), or 
because the content isn't fully loading before the script continues 
(possible.)


Anyone know how to solve this?


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Waiting until a player is loaded

2006-09-30 Thread J. Landman Gay
I am trying to load a series of movies into players in a loop, in order 
to make thumbnails. Inside a repeat loop, I set each player's filename, 
then take a snapshot of it to get a thumbnail image. This works just 
fine when I step through it in the debugger.


However, if I let the loop run at its natural speed, I get a bunch of 
blank snapshots, either because the content isn't fully loaded before 
the script continues, or because the screen isn't refreshing (I can't 
tell which.) I need a way to force the loop to wait until the player is 
fully loaded, and also something that will refresh the screen so that a 
snapshot has something to take a picture of.


I have tried locking and unlocking the screen to force a redraw, tried 
"go this card" to force a redraw, tried waiting various amounts of time 
both with and without messages, tried "set the currentTime of player 1 
to the duration of player 1" to force a full load, and everything else I 
can think of. In no case does the player content display. I am not sure 
if this is because the screen simply isn't redrawing (likely), or 
because the content isn't fully loading before the script continues 
(possible.)


Anyone know how to solve this?

--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution