开发者

Controlling Quicktime with javascript

I am controlling quicktime with javascript and am playing a midi file.

I cannot get any of the following events to register.

qt_begin
qt_load
qt_ended

Etc Here is the use开发者_运维问答rguide http://developer.apple.com/library/mac/#documentation/QuickTime/Conceptual/QTScripting_JavaScript/bQTScripting_JavaScri_Document/QuickTimeandJavaScri.html#//apple_ref/doc/uid/TP40001526-CH001-SW3

And here is my very simple code.

  QT_WriteOBJECT('test2.mid', '180','160', '',

       'obj#id', 'movie1', 'emb#name', 'movie1', 'enablejavascript', 'true');

       window.onload = load;


       function doSomething(){
       window.alert("Working!");           }

       function load()
       {
        document.getElementById('movie1').addEventListener('qt_load',doSomething);
       }

Wondering if it does not work with Midi Files?Or I am doing something wrong.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜