Closed jkirkcaldy closed 11 months ago
My playlist is created dynamically and I need to get the name of the current playing video, not the source of the file. playlist looks like:
{ name: "{{ video.clip }}", sources: [{ src: "{{ video.filepath }}", type: "application/x-mpegURL" }], },
nevermind, goit it with:
var index = player.playlist.currentIndex() var playlist = player.playlist() document.getElementById("clip_name").innerHTML = playlist[index].name;
My playlist is created dynamically and I need to get the name of the current playing video, not the source of the file. playlist looks like: