[javascript-dev] JitterListener and jit.qt.movie read...bug?
pnyboer
pnyboer at slambassador.com
Thu Jul 5 14:17:41 MDT 2007
- Previous message: [javascript-dev] seek message for 'sfplay~' from Javascript
- Next message: [javascript-dev] Re: JitterListener and jit.qt.movie read...bug?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I would expect that a JitterListener would catch the "read" message that normally comes out of a jit.qt.movie object, but this doesn't seem to be the case? Here is a simple javascript and patch that I would expect this to post a "read <file> <1/0>" in the max window...but it does not! It does, however, post a "flatten" message after that is successful.
/*
listens to a jit.qt.movie's output. It doesn't seem to generate a "read" message after I read a file? The savemovie and flatten are in here simple to demonstarte that the listener is working at least for the "flatten" command
*/
var mov01 = new JitterObject("jit.qt.movie");
mov01.autostart = 0;
var mov01listen = new JitterListener(mov01.getregisteredname(), listenresults);
var movpath = "\.";
function listenresults(event)
{
post("
listener",event.eventname);
}
function readmov(v){
mov01.read(v);
mov01.savemoviecopy(movpath);
mov01.flatten(movpath);
}
function savepath(v){
post("
path",v);
movpath = v+"junk.mov";
}
//end simplelistener.js
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 188 172 63 196617 jit.qt.movie;
#P newex 211 30 48 196617 loadbang;
#P message 212 54 29 196617 path;
#P newex 202 109 88 196617 prepend savepath;
#N thispatcher;
#Q end;
#P newobj 212 75 61 196617 thispatcher;
#P message 89 109 99 196617 readmov dozer.mov;
#P newex 112 132 88 196617 js simplelisten.js;
#P connect 1 0 0 0;
#P connect 3 0 0 0;
#P connect 2 1 3 0;
#P connect 5 0 4 0;
#P connect 4 0 2 0;
#P window clipboard copycount 7;
--
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The Lifespan
2 oz brandy
1/2 oz orgeat
1/2 oz maraschino
3/4 oz mix of (meyer) lemon and (yellow) grapefruit juice
Shake with ice and serve in a Pernod-rinsed cocktail glass
- Previous message: [javascript-dev] seek message for 'sfplay~' from Javascript
- Next message: [javascript-dev] Re: JitterListener and jit.qt.movie read...bug?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
