play item (n) in playlist / javascript
Posted: 13 Sep 2006 20:24
hello everyone,
can anybody show me the javascript-code to play a certain file in a playlist?
I have the index in the playlist (n)
I also have the name (file)
Since it seems a little trouble to do, I thought of a trick replacing file with file, and playing it ...
I tried: vlc.addTarget(file,null,8,n);
which as far as I know would replace some file with "file" and play it,
but it doesn't exactly; it keeps inserting, in stead of replacing.
I also tried "10" in stead of "8", and that did nada at all.
"12" appends, and "9" ... inserts also!
I have vlc embedded as object in IE6 and use it to see locally stored video in a local html page.
Can anybody help? I'd be glad!
can anybody show me the javascript-code to play a certain file in a playlist?
I have the index in the playlist (n)
I also have the name (file)
Since it seems a little trouble to do, I thought of a trick replacing file with file, and playing it ...
I tried: vlc.addTarget(file,null,8,n);
which as far as I know would replace some file with "file" and play it,
but it doesn't exactly; it keeps inserting, in stead of replacing.
I also tried "10" in stead of "8", and that did nada at all.
"12" appends, and "9" ... inserts also!
I have vlc embedded as object in IE6 and use it to see locally stored video in a local html page.
Can anybody help? I'd be glad!