Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

QuickTime JavaScript SetMatrix issues



Does the JS API for QuickTime Plugin's SetMatrix actually work? I'm trying to do simple things like a -1.0 x or y scale (to flip horizontally or vertically).

The movie bounds onscreen appear to change, but the actual movie content doesn't flip. Also, when I read back in the matrix using GetMatrix, any negative values I've passed have been converted to positive values.

All I can get working is simple non-negative X and Y scaling

The documentation says "You can use a movie’s transformation matrix to scale, translate, and rotate the movie image. For details on the transformation matrix, see Movie Internals."

I'm also confused about the matrix definition.

I'm used to:
      A  B  0
      C  D  0
      Tx Ty 0

but the docs use:
      a, b, u
      c, d, v
      h, k, w

Perhaps I'm not setting the right matrix values?

http://developer.apple.com/documentation/QuickTime/Conceptual/QTScripting_JavaScript/bQTScripting_JavaScri_Document/chapter_1000_section_7.html#/ /apple_ref/doc/uid/TP40001526-CH001-SW7


QT 7.5, OS X 10.5.3, inside a webkit control.



_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-api/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.