<p dir="ltr">Will try to decipher the activeX counterpart.</p>
<div class="gmail_quote">On 26 Apr 2014 10:52, "Jean-Baptiste Kempf" <<a href="mailto:jb@videolan.org">jb@videolan.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
It's good, but misses the ActiveX counter-part.<br>
<br>
<br>
On 24 Apr, Andrew Armstrong wrote :<br>
> ---<br>
>  npapi/npruntime/npolibvlc.cpp |    8 ++++++++<br>
>  npapi/vlcplugin_base.h        |    4 ++++<br>
>  2 files changed, 12 insertions(+)<br>
><br>
> diff --git a/npapi/npruntime/npolibvlc.cpp b/npapi/npruntime/npolibvlc.cpp<br>
> index a930f9e..05c26c9 100644<br>
> --- a/npapi/npruntime/npolibvlc.cpp<br>
> +++ b/npapi/npruntime/npolibvlc.cpp<br>
> @@ -835,6 +835,7 @@ const NPUTF8 * const LibvlcPlaylistNPObject::propertyNames[] =<br>
>      "itemCount", /* deprecated */<br>
>      "isPlaying",<br>
>      "items",<br>
> +    "currentItem",<br>
>  };<br>
>  COUNTNAMES(LibvlcPlaylistNPObject,propertyCount,propertyNames);<br>
><br>
> @@ -843,6 +844,7 @@ enum LibvlcPlaylistNPObjectPropertyIds<br>
>      ID_playlist_itemcount,<br>
>      ID_playlist_isplaying,<br>
>      ID_playlist_items,<br>
> +    ID_playlist_currentItem,<br>
>  };<br>
><br>
>  RuntimeNPObject::InvokeResult<br>
> @@ -873,6 +875,12 @@ LibvlcPlaylistNPObject::getProperty(int index, NPVariant &result)<br>
>                  OBJECT_TO_NPVARIANT(NPN_RetainObject(playlistItemsObj), result);<br>
>                  return INVOKERESULT_NO_ERROR;<br>
>              }<br>
> +            case ID_playlist_currentItem:<br>
> +            {<br>
> +                int val = p_plugin->playlist_current_item();<br>
> +                INT32_TO_NPVARIANT(val, result);<br>
> +                return INVOKERESULT_NO_ERROR;<br>
> +            }<br>
>              default:<br>
>                  ;<br>
>          }<br>
> diff --git a/npapi/vlcplugin_base.h b/npapi/vlcplugin_base.h<br>
> index c066b93..a75ff57 100644<br>
> --- a/npapi/vlcplugin_base.h<br>
> +++ b/npapi/vlcplugin_base.h<br>
> @@ -152,6 +152,10 @@ public:<br>
>      {<br>
>          return get_player().items_count();<br>
>      }<br>
> +    int  playlist_current_item()<br>
> +    {<br>
> +        return get_player().current_item();<br>
> +    }<br>
>      bool playlist_select(int);<br>
><br>
>      void control_handler(vlc_toolbar_clicked_t);<br>
> --<br>
> 1.7.9.5<br>
><br>
> _______________________________________________<br>
> vlc-devel mailing list<br>
> To unsubscribe or modify your subscription options:<br>
> <a href="https://mailman.videolan.org/listinfo/vlc-devel" target="_blank">https://mailman.videolan.org/listinfo/vlc-devel</a><br>
<br>
--<br>
With my kindest regards,<br>
<br>
--<br>
Jean-Baptiste Kempf<br>
<a href="http://www.jbkempf.com/" target="_blank">http://www.jbkempf.com/</a> - <a href="tel:%2B33%20672%20704%20734" value="+33672704734">+33 672 704 734</a><br>
Sent from my Electronic Device<br>
</blockquote></div>