Opened 1 year ago
Last modified 3 months ago
mp4play(filename,options): Play mp4 file to user.
Available options: 'n(x)': number of digits (x) to wait for 'S(x)': set variable of name x (with DTMFs) rather than go to extension 's(x)': set digits, which should stop playback
Available options:
'n(x)': number of digits (x) to wait for 'S(x)': set variable of name x (with DTMFs) rather than go to extension 's(x)': set digits, which should stop playback
Examples:\n" mp4play(/tmp/video.mp4) play video file to user mp4play(/tmp/test.mp4,'n(3)') play video file to user and wait for 3 digits mp4play(/tmp/test.mp4,'n(3)S(DTMF_INPUT)') play video file to user and wait for 3 digits and set them as value of variable DTMF_INPUT mp4play(/tmp/test.mp4,'n(3)s(#)') play video file, wait for 3 digits or break on '#'
Examples:\n"
mp4play(/tmp/video.mp4) play video file to user mp4play(/tmp/test.mp4,'n(3)') play video file to user and wait for 3 digits mp4play(/tmp/test.mp4,'n(3)S(DTMF_INPUT)') play video file to user and wait for 3 digits and set them as value of variable DTMF_INPUT mp4play(/tmp/test.mp4,'n(3)s(#)') play video file, wait for 3 digits or break on '#'
mp4play(/tmp/video.mp4) play video file to user mp4play(/tmp/test.mp4,'n(3)') play video file to user and wait for 3 digits mp4play(/tmp/test.mp4,'n(3)S(DTMF_INPUT)') play video file to user and wait for 3 digits and
set them as value of variable DTMF_INPUT
mp4play(/tmp/test.mp4,'n(3)s(#)') play video file, wait for 3 digits or break on '#'
mp4play patch
Will apply it also to app_rtsp as soon as possible. Nice work. (Sorry for the delay)
Applied (with minor modifications)