Am Sun, 17 Apr 2016 23:39:06 +0900 schrieb Carsten Haitzler (The
Rasterman):

> On Wed, 13 Apr 2016 19:53:37 +0200 Andreas Volz <li...@brachttal.net>
> said:
> 
> > Hello,
> > 
> > now I managed to write a simple media player on top of emotion with
> > a browsing list. But I've some problems to understand how to work
> > with the (async) "playback_finished" signal.
> > 
> > Let me describe the problem and write some high level requirements:
> > 
> > 1. choose a file in the list to play it
> > 2. if file is complete played, continue with next file for playing
> > 
> > For sure I implemented all the folder handling and so.
> > 
> > But the problem is that I get a "playback_finished" in both cases.
> > If a file is complete played and so "finished" and in the case the
> > user chooses a new file and I open it with emotion while the old is
> > still playing. Then I couldn't decide in the callback between those
> > both cases. This results e.g. in always skipping to the next if I
> > choose a new file in the list.
> > 
> > I had the idea to remember some "playing state" in my application,
> > but this doesn't work as all the emotion stuff is in a thread. So
> > if I stop() a media file it's not stopped in this moment but a
> > little later.
> > 
> > I think the design of my application is somehow not good. Could you
> > explain how I should handle those two requirements with emotion?
> 
> did you look at rage? it has playlists and even looping (loop 1
> video). :) it uses decode_stop. :)

Thanks! The callback "decode_stop" was a good hint! :-)

> -- 
> ------------- Codito, ergo sum - "I code, therefore I am"
> -------------- The Rasterman (Carsten Haitzler)
> ras...@rasterman.com
> 


-- 
Technical Blog <http://andreasvolz.wordpress.com/>

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to