Code: Select all
var options = ':audio-track='+(audioTrack)+' :sub-track='+subtitleTrack;
vlc.playlist.clear();
vlc.playlist.add(URI,null,options); // MRL, name, options
vlc.playlist.play();
Code: Select all
var streamExists = [];
// DVD has 8 possible audio streams
currentStream = player.playerObj.audio.track;
for (var streamID=1; streamID<=8; streamID++) {
try {
streamExists[streamID] = player.playerObj.audio.track = streamID;
} catch(err) {
streamExists[streamID] = false;
}
}
player.playerObj.audio.track = currentStream;
Code: Select all
vlc.playlist.clear();
vlc.playlist.add(URI,null,options); // MRL, name, options
delayedPlay();
function delayedPlay() {
if (vlc.playlist.items.count == 0) {
setTimeout('delayedPlay()',50);
return;
}
vlc.playlist.play();
}
Code: Select all
itemID = vlc.playlist.add(URI,null,options);
..
vlc.playlist.removeItem( itemID );
or
vlc.playlist.playItem( itemID );
Code: Select all
var itemId = vlc.playlist.add(media_url,null,':audio-track=0 :sub-track=0');
Code: Select all
var itemId = vlc.playlist.add(media_url);
Which version of the plugin do you use?I have a big problem,everything was working well, i didn't touch anything and now it doesn't work anymore, i don't understand what is going on!
The problem is that the functionis not recognized anymoreCode: Select all
var itemId = vlc.playlist.add(media_url,null,':audio-track=0 :sub-track=0');
Code: Select all
vlc.video.subtitle = stream+1
Code: Select all
vlc.video.subtitle = 0
Code: Select all
player.playerObj.audio.track = player.playerObj.audio.track;
ok, I've noted that .playlist.add gives back a item number, added the missing playlist.playItem(), changed an incorrect note after .remoteItemID, noted .video.subtitle=0 disables the subtitles and also noted .audio.track=0 disables the audio. jpsaman allready wrote .audio.track/.video.subtitle in the wiki (even before he submitted the code for them I see )And use the WIki for documentations !
Code: Select all
var audioTrack = 1;
var subtitleTrack = 1;
var options = new Array(":audio-track="+(audioTrack)+":sub-track="+subtitleTrack);
var itemId = vlc.playlist.add(media_url,null,options);
Code: Select all
var options = new Array('sub-track=0');
Code: Select all
var options = new Array('audio-track=0');
Code: Select all
var options = new Array(':audio-track=0'+':sub-track=0');
var options = new Array('audio-track'=>'0','sub-track'=>'0');
Code: Select all
var options = new Array('aspect-ratio='+aspectRatio,'sub-track='+subtitleTrack,'audio-track='+audioTrack);
Code: Select all
vlc.video.subtitle=1 and 0.
Code: Select all
vlc.video.subtitle="location/file.sub";
Code: Select all
var options = new Array(":aspect-ratio="+aspectRatio,':sub-track=0');
Users browsing this forum: No registered users and 12 guests