]> git.sesse.net Git - vlc/commitdiff
Show current item number for each of the instances
authorAntoine Cellerier <dionoea@videolan.org>
Fri, 17 Feb 2006 22:44:05 +0000 (22:44 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Fri, 17 Feb 2006 22:44:05 +0000 (22:44 +0000)
share/http/js/vlm.js

index 69e73dcab90322d8b53a0db1cdf63ac40e457da7..c9c177776e7b8ca1093f13272e7b498d334c3240 100644 (file)
@@ -500,9 +500,10 @@ function parse_vlm_elements()
                             var ititle = instances[i].getAttribute( 'title' );
                             var ichapter = instances[i].getAttribute( 'chapter' );
                             var iseekable = instances[i].getAttribute( 'seekable' );
+                            var iplaylistindex = instances[i].getAttribute( 'playlistindex' );
                             
                             var item = document.createElement( "li" );
-                            item.appendChild( document.createTextNode( iname + ": " + istate + " " + (iposition.toFixed(2)) + "%" + " " + format_time( itime ) + "/" + format_time( ilength ) ) );
+                            item.appendChild( document.createTextNode( iname + ": " + istate + " (" + iplaylistindex + ") " + (iposition.toFixed(2)) + "%" + " " + format_time( itime ) + "/" + format_time( ilength ) ) );
                             ilist.appendChild( item );
                         }
                     }