Page 1 of 1
Answer dialog box, Quicktime video switching
Posted: Mon Mar 29, 2010 1:46 pm
by streamline
Hi,
Two quick questions that I need help with.
(1) Is there a way to pop up a dialog box (such as the one that appears with 'answer') and have the button(s) greyed out, and then hide/remove the box after, say, 2 seconds? If not with the 'answer' function, is there a way to mimic this without resorting to creating images?
(2) When switching videos in a qt player (by changing the filename path and then starting the player again) there is a small but extremely noticable delay where it goes black in between videos. Is there a way to switch videos while minimising this delay? Actually, is there any other way to switch videos (so I can test the delay myself) without some complex hiding/showing of two 'player' fields?
Hopefully that all made sense, I rushed it a bit as I need sleep but would greatly appreciate any help.
Re: Answer dialog box, Quicktime video switching
Posted: Mon Mar 29, 2010 2:30 pm
by dunbarx
I can only comment on your first inquiry. The dialogs you are referring to are modal, and not really accessible to modification.
I think you will have to make your own "dialog" to do the things you want, likely as a stack. This is easy, fortunately, and then you have complete control over buttons and the duration that the dialog appears.
You will want to manage this new stack, making it quasi-modal, so that the user cannot do anything while it is displayed. Or maybe they can?
Craig Newman
Re: Answer dialog box, Quicktime video switching
Posted: Mon Mar 29, 2010 3:41 pm
by bn
streamline,
I don't notice the delay nor the black screen. What is your script?, what is your hardware? what is your operating system?
I tested with
Code: Select all
on mouseUp
put "/Users/myName/Desktop/C TL 25-04-07 1522.mov" into tMovie
set the filename of player 1 to tMovie
start player 1
wait 2 seconds with messages
play stop
put "/Users/myName/Desktop/C TL 22-02-07 1119.mov" into tMovie
set the filename of player 1 to tMovie
start player 1
end mouseUp
regards
Bernd
Re: Answer dialog box, Quicktime video switching
Posted: Tue Mar 30, 2010 12:55 am
by streamline
dunbarx wrote:I can only comment on your first inquiry. The dialogs you are referring to are modal, and not really accessible to modification.
I think you will have to make your own "dialog" to do the things you want, likely as a stack. This is easy, fortunately, and then you have complete control over buttons and the duration that the dialog appears.
You will want to manage this new stack, making it quasi-modal, so that the user cannot do anything while it is displayed. Or maybe they can?
Craig Newman
I suspected as much. Could you explain what you mean by making my own dialog? Creating an entire new stack, or just a card? Can it be part of the same standalone executable file? And how do I make it 'quasi-modal'? I don't want the user to be able to do anything; they must wait for two seconds while the 'fake' dialog box pops up -- but I want the video playing in the card to continue playing (as happens when an 'answer' dialog box pops up).
bn wrote:streamline,
I don't notice the delay nor the black screen. What is your script?, what is your hardware? what is your operating system?
I tested with
Code: Select all
on mouseUp
put "/Users/myName/Desktop/C TL 25-04-07 1522.mov" into tMovie
set the filename of player 1 to tMovie
start player 1
wait 2 seconds with messages
play stop
put "/Users/myName/Desktop/C TL 22-02-07 1119.mov" into tMovie
set the filename of player 1 to tMovie
start player 1
end mouseUp
regards
Bernd
I've tested on two different computers, both Windows XP. Admittedly one is a netbook (800MHz, 2gb RAM and I imagine limited video capabilities) but the desktop is quite up-to-date (can't access the computer to check specs right now).
Here's an example of my script:
Code: Select all
on openCard
set the filename of player "qt" to "videos\setting_up_1.wmv"
set the playLoudness of player "qt" to 100
start player "qt"
wait 10000 millisec with messages
set the filename of player "qt" to "videos\setting_up_2.wmv"
start player "qt"
end openCard
I didn't think of setting the filename as a variable (I think I'll do this to clean up/simplify) but I doubt that's the cause of the delay... perhaps it's merely a hardware issue...
Re: Answer dialog box, Quicktime video switching
Posted: Tue Mar 30, 2010 1:09 am
by bn
streamline,
streamline wrote:I didn't think of setting the filename as a variable (I think I'll do this to clean up/simplify) but I doubt that's the cause of the delay...
I don't think so either. I don't know what is the reason. I use the player quite often on a Mac and except for a few little quirks it works very well. Don't know about Windows. Video can get quite complicated with all the different codecs, Quicktime, Mediaplayer etc.
Maybe it is a hardware thing, I use a core 2 duo 2.3 GHz.
Maybe someone with experience on the Windows side can share his experiences.
regards
Bernd
Re: Answer dialog box, Quicktime video switching
Posted: Tue Mar 30, 2010 10:18 am
by Klaus
Hi streamline,
a couple of things:
1. Please use the SLASH "/" as a path delimiter in Rev. -> "folder1/folder2/videos/video1.wmv"
Rev uses this one for pathnames internally.
It may work for you now, but Murphy's law, you know?!
2. You could try to lock the screen when switching QT movies inside of a player:
...
lock screen
set the filename of player xyz to abc
unlock screen
start player xyz
...
3. I notice that you use the player to display WMV files and since I assume
that you are on windows this means that QuickTime is NOT involved on your side,
since QT does nto play WMV files on windows.
Or does it? That really would surprise me
Did you "set the dontuseqt to true"?
So the problems you are encountering may be a WindowsMediaPlayer problem?
Best
Klaus