Summary:ASTERISK-01692: [request] Fastforward and rewind in a playback application
Reporter:magg (magg)Labels:
Date Opened:2004-05-26 05:13:45Date Closed:2004-09-25 02:45:04
Versions:Frequency of
What I want is to be able to skip forward and backwards in a soundfile (wav, gsm and mp3 would be nice), by using the keypad on the phone.

For example 1 is 3 sec back, 4 is 10 sec back, 7 is 30 seconds backwards, and the  opposite for 3,6 and 9. # for exit, 2 for pause/resume, 5 stop/back to begining.

I know some of this is possible in the VoiceMail system, but I don't have the skills to extract that code.

Would it be hard to implement?
It's ok, for my part, to assume that the mp3 files are constant rate, if that's of any help.
Comments:By: Brian West (bkw918) 2004-05-26 12:54:17


Its not done yet.. but you MUST run CVS as of about an hour ago for this to work.

By: Brian West (bkw918) 2004-05-26 13:13:21


exten => 555,1,ControlPlayback(demo-congrats|1000|endplay)

that will playback demo-congrats and skip forward and backwards 1000ms and endplayback if you press 1.  Pressing any other key besides 1, * or # will cause the playback to start over.


By: Mark Spencer (markster) 2004-05-26 14:24:37

OKay it's in CVS head now.  bkw: i think it will need for the hard coded '#' and '*' to be configurable.

By: Brian West (bkw918) 2004-05-26 20:28:00

Ok updated.  Added the ability to pause, Not on by default.  You can now config the keys used for each function.

exten => 1234,1,ControlPlayback(filename|skipms|fwd|rev|stop|pause)

It defaults to fwd(#) and rev(*), stop and pause are not there unless you specify them.