[Freeswitch-users] How to query current playback position?
Dragos Oancea
dragos at freeswitch.org
Mon Aug 23 16:02:13 UTC 2021
We set these channel variables in switch_ivr_play_say.c :
playback_last_offset_pos, playback_seconds, playback_ms, playback_samples.
On Mon, Aug 23, 2021 at 5:53 PM Avi Marcus <avi at avimarcus.net> wrote:
> I'm trying to create a bookmark feature for long playbacks.
>
> I'll save the file and position (to be exact the sample position) and then
> when the caller comes back, they can choose to restart in the same place.
>
> The playback tool allows me to specify the sample position (and
> uuid_fileman lets me seek to one)
>
> But I don't see how to query the _current_ position.
> There's no status inside uuid_fileman
> There's no variables I see that are updating when doing uuid_dump.
>
> The closest I see is that if I stop the playback, I get a PLAYBACK_STOP
> event with the sample position.
>
> This seems like it could work, but that's means I need to trigger a script
> to stop the playback (can't continue listening) and wait for an ESL event,
> and hope we're getting the right one. (How to I listen for events attached
> only to a specific UUID?) This seems overly complicated.
>
> I was hoping to have a uuid_fileman option or the like to query the
> current position.
>
> Does that exist somewhere?
>
> Thanks.
> _________________________________________________________________________
>
> The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN
> services.
> Build your next product on our scalable cloud platform.
>
> Join our online community to chat in real time
> https://signalwire.community
>
> Professional FreeSWITCH Services
> sales at freeswitch.com
> https://freeswitch.com
>
> Official FreeSWITCH Sites
> https://freeswitch.com/oss
> https://freeswitch.org/confluence
> https://cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> https://freeswitch.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20210823/17c6bf6e/attachment.html>
More information about the FreeSWITCH-users
mailing list