playlist eof_cb support from python pjsua?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Shawn,

It turns out I have done this! Well, something close to it anyway. I
didn't use a playlist, just a single wav, but it may actually work
as-is. I don't have access to the source at the moment though so I'll
have to send it tomorrow. I wasn't sure what I did would be palatable to
the code owners--not that it is broken in any way, maybe just not as
clean as it could be.

Shawn Smith wrote:
>  
> I'm using python pjsua (great stuff guys!), and I need to support
> "play done" functionality from the playlist on my apps.
>  
> I see that the wav_playlist supports eof callbacks through it 
> pjmedia_wav_playlist_set_eof_cb() - but there does not seem to be
> support for it at pjsua nor python pjsua.
>  
> I need to extend that support through pjsua and python.
>  
> My plan is to add a "on_play_done" callback to the
> PyObj_pjsua_callback list, connect it up to the wav_player and
> wav_playlist, plumb the callback up to pjsua, add support to
> pjsua_internal to keep track of python "user_data" as part of the
> pjsua_file_data struct which goes with each player so that I can
> implement a /self/._lookup_player(playerId) in python and fire the
> callback to the correct python object in a manner similar to how
> callbacks are implemented on calls, accounts, and buddies.
>  
> It's quite a bit of plumbing, so I thought I'd ask the experts:
>  
> 1.  Am I headed the right way?
> 2.  Is there a simpler way to get there?
> 3.  Has anyone done this already, or willing to help out?
> 4.  If I do it, would you like me to send it in?
>  
> Thanks for your time.
>  
>     -Shawn Smith
>  
> ------------------------------------------------------------------------
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>   


-- 
Jens B. Jorgensen
jbj1 at ultraemail.net




[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux