JW6: How to output currently played video
I want to output information about the player and the currently played video. I have written the following code for JW player 6:
console.log('JW Player v' + jwplayer().version + ' loaded (' + jwplayer().getRenderingMode() + ' mode)');
var item = jwplayer().getPlaylistItem();
console.log('Playing "' + item.sources.file + '" (type ' + item.sources.type + ')');
My problems are
2) If I have multiple sources e.g. for SD/HD how do I know which one is played? item.file seems always to be set to item.sources.file and there is no property within the item object with an index to the sources-Array.
URL of demo: http://www.uni-muenster.de/videoportal/video/50_Jahre_ZIV.html
Any help appreciated!