Forums > Javascript

seek message for 'sfplay~' from Javascript

July 3, 2007 | 2:58 pm

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


Viewing 1 post (of 1 total)