Hi. I currently have a list of videos stored in a playlist and each video entry is displayed in a cell. May I ask how do i get the index of the video that I have selected. I tried the following codes below. playlist is a mediaplayer variable i declared globally,
CODE
var cell = new KONtx.control.GridCell({
//styles: $content.styles.main.cell, //Style information for the Grid Cell from 960x540.js
styles: {
width: this.width
},
events: {
onSelect: function () {
this.getView().controls.latest.setText(playlist.currentIndex);
});
}
}
});
Is there anything wrong with playlist.currentIndex?