<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Message: 1
Date: Tue, 10 Jan 2012 20:14:29 +0700
From: Sergey Radionov <a moz-do-not-send="true"
class="moz-txt-link-rfc2396E" href="mailto:rsatom@gmail.com"><rsatom@gmail.com></a>
To: Mailing list for VLC media player developers <a
moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="mailto:vlc-devel@videolan.org"><vlc-devel@videolan.org></a>
Subject: Re: [vlc-devel] vlc-devel Digest, Vol 56, Issue 57
Message-ID: <a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="mailto:4F0C39B5.309@gmail.com"><4F0C39B5.309@gmail.com></a>
Content-Type: text/plain; charset=KOI8-R; format=flowed
On 10.01.2012 19:41, jean-michel Lambert wrote:
<blockquote
cite="mid:mailman.49167.1326204719.1630.vlc-devel@videolan.org"
type="cite">
<div class="moz-text-plain" wrap="true" graphical-quote="true"
style="font-family: -moz-fixed; font-size: 14px;"
lang="x-western">
<blockquote type="cite" style="color: #000000;">
<pre wrap=""><span class="moz-txt-citetags">> </span>On Message: 4 Date: Tue, 10 Jan 2012 16:56:35 +0700 From: Sergey Radionov <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:rsatom@gmail.com"><rsatom@gmail.com></a>
<span class="moz-txt-citetags">> </span><a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:rsatom@gmail.com"><mailto:rsatom@gmail.com></a> To: Mailing list for VLC media player developers <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:vlc-devel@videolan.org"><vlc-devel@videolan.org></a>
<span class="moz-txt-citetags">> </span><a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:vlc-devel@videolan.org"><mailto:vlc-devel@videolan.org></a> Subject: Re: [vlc-devel] content vlc-devel Digest, Vol 56, Issue 33
<span class="moz-txt-citetags">> </span>Message-ID: <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:4F0C0B53.4020906@gmail.com"><4F0C0B53.4020906@gmail.com></a> <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:4F0C0B53.4020906@gmail.com"><mailto:4F0C0B53.4020906@gmail.com></a> Content-Type:
<span class="moz-txt-citetags">> </span>text/plain; charset=KOI8-R; format=flowed On 10.01.2012 15:02, jm wrote:
</pre>
<blockquote type="cite" style="color: #000000;">
<blockquote type="cite" style="color: #000000;">
<blockquote type="cite" style="color: #000000;">
<pre wrap=""><span class="moz-txt-citetags">>>> > </span> On 01/10/2012 08:58 AM, jm wrote:
</pre>
<blockquote type="cite" style="color: #000000;">
<blockquote type="cite" style="color: #000000;">
<pre wrap=""><span class="moz-txt-citetags">>>>> >> </span> Send vlc-devel mailing list submissions to
<span class="moz-txt-citetags">>>>> >> </span> <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:vlc-devel@videolan.org">vlc-devel@videolan.org</a> <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:vlc-devel@videolan.org"><mailto:vlc-devel@videolan.org></a>
</pre>
</blockquote>
</blockquote>
<pre wrap=""><span class="moz-txt-citetags">>>> ></span>
</pre>
<blockquote type="cite" style="color: #000000;">
<blockquote type="cite" style="color: #000000;">
<pre wrap=""><span class="moz-txt-citetags">>>>> >> </span> Regarding the way to expose the meta info, do you prefer me to add a
</pre>
<blockquote type="cite" style="color: #000000;">
<blockquote type="cite" style="color: #000000;">
<pre wrap=""><span class="moz-txt-citetags">>>>>> >>> </span> property"meta" and sub properties for each meta type ?(ie input.meta.title,
<span class="moz-txt-citetags">>>>>> >>> </span> meta.currentlyPlaying, etc ... ?). I liked it this way before it allows to
<span class="moz-txt-citetags">>>>>> >>> </span> process new fields in the future without recompiling everything.
</pre>
</blockquote>
</blockquote>
<pre wrap=""><span class="moz-txt-citetags">>>>> >> </span> I think it will be better than using some"magic numbers" in JS code...
</pre>
</blockquote>
</blockquote>
<pre wrap=""><span class="moz-txt-citetags">>>> ></span>
<span class="moz-txt-citetags">>>> > </span> There are 17 meta fields so I thought it would be preferable to keep them from others, hence
<span class="moz-txt-citetags">>>> > </span> building a new object called meta.
<span class="moz-txt-citetags">>>> > </span> Where should I put the object:
<span class="moz-txt-citetags">>>> > </span> - underneath the root one
<span class="moz-txt-citetags">>>> > </span> - underneath the root.input one ?
<span class="moz-txt-citetags">>>> ></span>
<span class="moz-txt-citetags">>>> > </span> Guidance please ..
</pre>
</blockquote>
</blockquote>
<pre wrap=""><span class="moz-txt-citetags">>> </span>What if it will be a playlist item?
<span class="moz-txt-citetags">>></span>
<span class="moz-txt-citetags">>> </span>something like
<span class="moz-txt-citetags">>> </span>vlc_root.playlist.item[i].title;
<span class="moz-txt-citetags">>> </span>vlc_root.playlist.current_item.description;
<span class="moz-txt-citetags">>></span>
<span class="moz-txt-citetags">>> </span>What do you think?
<span class="moz-txt-citetags">>></span>
<span class="moz-txt-citetags">>></span>
</pre>
</blockquote>
<pre wrap=""><span class="moz-txt-citetags">> </span>unfortunately, there will be meta information only for the current item so this does not make too
<span class="moz-txt-citetags">> </span>much sense to tie it to the playlist .
</pre>
</blockquote>
<pre wrap="">Why we can't use
LIBVLC_API libvlc_media_t *
libvlc_media_list_item_at_index( libvlc_media_list_t *p_ml, int i_pos );
?
</pre>
</div>
</blockquote>
because media information is available only for the current item
being played. I use libvlc_media_get_meta with the media player
given as argument, not a given playlist item.<i> </i><br>
Since info is available in VLC client GUI thru the "Tool/Media
information menu", I propose to create an object called
MediaInformation and attach it directly under the player root
object.<br>
<i><br>
<br>
<br>
</i><br>
</body>
</html>