I am using the following code on forward frame and back frame buttons:
Code: Select all
on mousedown
play step forward player "Player"
end mousedown
When I use .avi and .wmv files, this functions perfectly well. It steps forwards on frame and stops.
When I use .mov and .mp4 files, this doesn't work. It steps to a frame somewhere in the video and stops, and won't step forwards any more.
Clearly this is something that is unique to file types (Klaus has warned me on this one!!!)
So I am looking at a work around.
I have tried:
Code: Select all
on mousedown
put the currenttime of player "Player" into tTime
put tTime+1 into tTime
set the currenttime of player "Player" to tTime
end moousedown
I have used this code:
Code: Select all
on mousedown
start player "Player"
wait 0.5 seconds
stop player "Player"
end mousedown
The problem with this method is that to go backwards, I need to use "set playrate of player "Player" to -1" instead of "start" command. This doesn't work at all...
Any thoughts on another workaround that may produce a result like a frame-by-frame forwards and backwards that work on .mov and .mp4/ .mpg files?
Thanks in advance.
XdM