Joshua C. Colp
2021-Jan-04 10:16 UTC
[asterisk-users] How do I extract CPLAYBACKOFFSET from ARI playback?
On Mon, Jan 4, 2021 at 6:14 AM Jonathan H <lardconcepts at gmail.com> wrote:> Following the playback.js ari-client example, I now need to store the > current playback offsetms, either when it was skipped or hung up on. > But I can't seem to find it. > I know that > https://wiki.asterisk.org/wiki/display/AST/Asterisk+18+Application_ControlPlayback > sets CPLAYBACKOFFSET but that variable doesn't seem to be set by the ARI > request. > > Nor is there any info in the "get playback" information request, in fact, > it doesn't seem to exist anywhere. > > Internally, it must know the point at which it was paused to set the > correct offsetms when it is restarted - so how can I get this? > What I want to try and avoid is stuff like starting a timer and then > having to manually track all the skips back and forth etc. > Thanks. >The information is not currently exposed. ARI would have to be extended to provide it in some manner. -- Joshua C. Colp Asterisk Technical Lead Sangoma Technologies Check us out at www.sangoma.com and www.asterisk.org -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20210104/795287df/attachment.html>
Jonathan H
2021-Jan-04 10:28 UTC
[asterisk-users] How do I extract CPLAYBACKOFFSET from ARI playback?
On Mon, 4 Jan 2021 at 10:17, Joshua C. Colp <jcolp at digium.com> wrote:> On Mon, Jan 4, 2021 at 6:14 AM Jonathan H <lardconcepts at gmail.com> wrote: > >> Following the playback.js ari-client example, I now need to store the >> current playback offsetms, either when it was skipped or hung up on. >> >> The information is not currently exposed. ARI would have to be extended > to provide it in some manner. >OK - thanks for clarifying. So my choices are to keep track with my own timer, OR switch back to diaplan / AGI and use controlplayback for this case? Now I'm getting my head round ARI I'm loving it - would just love to know where I'm going wrong with piping rtp into externalmedia (see my other post from last night) Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20210104/84b1f4fd/attachment.html>