Getting the height and width of a videoclip

J. Landman Gay jacque at hyperactivesw.com
Mon Jan 18 13:21:43 EST 2010


William Ziegler wrote:
> Thanks Jacqueline and Richard
> 
> Any sources for tutorials with sample scripts on setting custom disk 
> property to binary data?

It's so easy, I don't think there are any tutorials. It's a one-liner. 
Assume you are going store the movie data in a custom stack property 
called "cMovie":

set the cMovie of this stack to url ("binfile:folder/folder/mymovie.mov")

That's it. You can of course create any number of custom properties 
(cMovie1, cMovie2, etc) if you need to store more than one movie. When 
you want to use it:

put tempname() into tFilePath
put the cMovie of this stack into url ("binfile:"&tFilePath)
set the filename of player 1 to tFilePath

The "binfile" part is important, it uses binary data. If you use just 
"file" instead you'll get a text file which won't work.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



More information about the use-livecode mailing list