<div dir="ltr"><div><div><div> Jean-Baptiste,<br><br></div>Could you please help in knowing which of the following item types should be ignored for "Now Playing" Notification.<br><br><span class=""><span> ITEM_TYPE_UNKNOWN,
<br> ITEM_TYPE_FILE,<br> ITEM_TYPE_DIRECTORY,<br> ITEM_TYPE_DISC,<br> ITEM_TYPE_CARD,
<br> ITEM_TYPE_STREAM,<br> ITEM_TYPE_PLAYLIST,<br> ITEM_TYPE_NODE,

    <br><br>/* This one is not a real type but the number of input_item types. */
    <br>ITEM_TYPE_NUMBER<br><br></span></span></div><span class=""><span>As of now I Know Directory, playlist must be ignored. I checked for stream and it displays two notifications back to back, one with url  which is not required and other with title of song (required). DISC (DVDS, Blu-ray, etc), CARD and NODE I was not able to test. Kindly suggest me on this issue.<br><br></span></span></div><span class=""><span>Avani<br></span></span></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 18, 2016 at 10:48 PM, Avani Sharma <span dir="ltr"><<a href="mailto:avaninith@gmail.com" target="_blank">avaninith@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Yeah sure jb :). I would like to explore this.<span class="HOEnZb"><font color="#888888"><br><br></font></span></div><span class="HOEnZb"><font color="#888888">Avani<br></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 18, 2016 at 5:02 AM, Jean-Baptiste Kempf <span dir="ltr"><<a href="mailto:jb@videolan.org" target="_blank">jb@videolan.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 18 Mar, Avani Sharma wrote :<br>
<span>> ---<br>
>  modules/notify/notify.c | 6 ++++++<br>
>  1 file changed, 6 insertions(+)<br>
><br>
> diff --git a/modules/notify/notify.c b/modules/notify/notify.c<br>
> index adc6de2..1fe1eb3 100644<br>
> --- a/modules/notify/notify.c<br>
> +++ b/modules/notify/notify.c<br>
> @@ -170,10 +170,16 @@ static int ItemChange( vlc_object_t *p_this, const<br>
> char *psz_var,<br>
>      if( !p_input )<br>
>          return VLC_SUCCESS;<br>
><br>
> +<br>
<br>
</span>Unneeded.<br>
<span><br>
>      /* Playing something ... */<br>
>      input_item_t *p_input_item = input_GetItem( p_input );<br>
>      psz_title = input_item_GetTitleFbName( p_input_item );<br>
><br>
> +    /* Checking for click on directories */<br>
> +    if(p_input_item->i_type == ITEM_TYPE_DIRECTORY){<br>
> +        return VLC_SUCCESS;<br>
> +    }<br>
<br>
</span>Way better! Maybe there are other ITEM_TYPE we should ignore, don'tyou<br>
thinkg?<br>
<br>
-<br>
With my kindest regards,<br>
<span><font color="#888888"><br>
--<br>
Jean-Baptiste Kempf<br>
<a href="http://www.jbkempf.com/" rel="noreferrer" target="_blank">http://www.jbkempf.com/</a> - +33 672 704 734<br>
Sent from my Electronic Device<br>
_______________________________________________<br>
vlc-devel mailing list<br>
To unsubscribe or modify your subscription options:<br>
<a href="https://mailman.videolan.org/listinfo/vlc-devel" rel="noreferrer" target="_blank">https://mailman.videolan.org/listinfo/vlc-devel</a><br>
</font></span></blockquote></div><br></div>
</div></div></blockquote></div><br></div>