rmov icon indicating copy to clipboard operation
rmov copied to clipboard

Get and set user data

Open ryanb opened this issue 15 years ago • 0 comments

User data is various information attached to a movie (such as the copyright) and can even be custom data. One should be able to get and set this information. through a simple user interface.

The data is keyed by a 4 letter code, but we could use symbols to represent common codes.

movie.get_user_data(:copyright) # get copyright details
movie.set_user_data("abcd", "foo") # set custom user data

An alternative interface is a hash, which is more ideal but might be a bit harder to implement.

movie.user_data[:copyright] # get copyright details
movie.user_data["abcd"] = "foo" # set custom user data

See page 38 of QuickTime Toolkit for more info on user data.

ryanb avatar Jul 12 '09 23:07 ryanb