|
|
|
@ -66,7 +66,6 @@ export class PlayerComponent implements OnInit {
|
|
|
|
src: fullLocation,
|
|
|
|
src: fullLocation,
|
|
|
|
type: fileType
|
|
|
|
type: fileType
|
|
|
|
}
|
|
|
|
}
|
|
|
|
console.log(mediaObject);
|
|
|
|
|
|
|
|
this.playlist.push(mediaObject);
|
|
|
|
this.playlist.push(mediaObject);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.currentItem = this.playlist[this.currentIndex];
|
|
|
|
this.currentItem = this.playlist[this.currentIndex];
|
|
|
|
@ -103,7 +102,7 @@ export class PlayerComponent implements OnInit {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
onClickPlaylistItem(item: IMedia, index: number) {
|
|
|
|
onClickPlaylistItem(item: IMedia, index: number) {
|
|
|
|
console.log('new current item is ' + item.title + ' at index ' + index);
|
|
|
|
// console.log('new current item is ' + item.title + ' at index ' + index);
|
|
|
|
this.currentIndex = index;
|
|
|
|
this.currentIndex = index;
|
|
|
|
this.currentItem = item;
|
|
|
|
this.currentItem = item;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|