I think it's about time we add the event after a few apps having done it a less optimal way a few times now. I plan to release v0.8.2 sometime this week. I already sent notice to some distro maintainers and have them checking the build, so I don't want to introduce this change for that release. Then, I will add this new event on the weekend.
On Mon, Aug 20, 2012 at 10:38 AM, Aaron Cruz <[email protected]> wrote: > We only add events on an as-needed basis, but when I needed this in > the past for as-run logging, I chose to do it in a different way. I > setup a consumer-frame-render or consumer-frame-show event handler and > used Playlist::clip_info() to detect when a producer is near its end. > If you are using frame-dropping (consumer.real_time > 0), then you > need to use some margin near the end instead of actually at the end. > > I am not using consumer.real_time > 0. I don't know what frame-dropping is. > I would like an event at the end of a producer so I don't have to keep > polling mlt for its playlist's current producer position every x seconds to > update my UI. I can hook into the 'producer complete' event and then send > an http request to my web app showing the current playlist. > Perhaps there is a simpler way to handle this. I would like to keep my > requests to a minimum and polling feels yucky. This event sounds like the > most reasonable solution to me. > Maybe the consumer-frame-render solution would even work for me > > If I add an event to mlt_playlist, it will need to have a reference to > the producer in the parameter list, which requires a custom > RubyListener in the swig binding (mlt.i). If I do the C/C++ changes, > can you try to implement the change to swig/mlt.i and contribute that? > > The key word here is try but yes, I would do my best to implement your > changes in mlt.i - I was reading through it before I posted this and it > seems pretty straight forward. > > Thanks again for your time -- +-DRD-+ ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Mlt-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mlt-devel
