XML Feeds

.

[javascript-dev] seek message for 'sfplay~' from Javascript

Sunish.George at surrey.ac.uk Sunish.George at surrey.ac.uk
Tue Jul 3 08:58:37 MDT 2007


Hello

I am trying to use 'seek' message associated with 'sfplay~' from javascript. The code is as follows:

//Recording to be played
        rec = "meatloaf_004.wav";

//open the specified recording to be played through sfplayer. sfplayer is the equivalent Javascript object for 'sfplay~'
	sfplayer.message("open",rec);

//Playing from X msec onwards.
	sfplayer.message("seek",X);

//looping
	sfplayer.message("loop",1);

When running this snippet of javascript, the playback starts from 0 msec instead of X msec. Am I doing anything wrong here? Some of you please suggest a solution for this?

Many thanks

Sunish



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.cycling74.com/pipermail/javascript-dev/attachments/20070703/f11281f8/attachment.htm


More information about the javascript-dev mailing list