[vlc-devel] [PATCH] Optional pause when window inactive.

sanjeev mk sanjeevmk4890 at gmail.com
Thu Sep 22 13:17:46 CEST 2011


2011/9/22 Rémi Denis-Courmont <remi at remlab.net>

> Le mercredi 14 septembre 2011 09:02:52 sanjeev mk, vous avez écrit :
> > Starting a new thread because this is a different patch and the previous
> > thread had become pretty long.
> >
> > As discussed previously in the thread "Pause when window inactive", one
> of
> > the users suggested the idea of having the 'Pause when window inactive'
> > feature as a Preference option, if there are significant number of users
> > who want it.
>
> Im my opinion, this idea is plain idiotic.
>
> For a start, the video being played back may be a music video. In that case
> it
> is perfectly reasonable to continue playing audio even if focus is lost.
> Similarly, VLC may loose the focus to a small application that does not
> obscure the video, or only a small part of it, e.g. live messaging. Again,
> I
> would not expect the video to pause for this.
>
> And last, we cannot track the visibility of the video window: compositing
> managers have drastically altered the meaning of visiblity. Essentially,
> visibility is only meant to tell the application that it does not need to
> refresh its window (VLC already partially implements this optimization).
>
> So, it comes down to the user pausing the video when changing task. That
> seems
> perfectly reasonable, and I don't want to clutter the code with yet another
> useless obscure and disabled by default configuration option.
>
> Pause should only trigger automatically as a consequence of an event that
> is
> NOT triggered by the user. If the user triggered the event, we can assume
> the
> user would have paused the video manually. By that, I mean things like
> incoming VoIP calls. In that case, playback should be paused automatically
> even if it is audio only. And handling that probably does not belong in the
> VLC UI code.
>

Yeah, I agree with you.
Actually, I am totally new to Open Source contribution. I am a Computer
Science undergraduate in my final year, and am really keen on participating
in community projects, and VLC is the first place I came to, because I have
been using it for a long time. And all this is a learning experience for
me.
So far, I hadn't completely understood why someone won't need such a
feature, but now I see the point.

Thanks for taking the time and patiently explaining it to me, I appreciate
that :)

>
>
> Rémi Denis-Courmont
> http://www.remlab.net/
> http://fi.linkedin.com/in/remidenis
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
>



-- 
Stay Hungry, Stay Foolish

Regards,
Sanjeev M K
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20110922/dca4edb3/attachment.html>


More information about the vlc-devel mailing list