![](https://secure.gravatar.com/avatar/7e23975956d399b0f75e67d411c3da9e?rating=PG&size=50&default=https%3A%2F%2Fcdn.desk.com%2Fassets%2Funknown_user_50-8ad5644bbe6b1bd7454f2ea465f782bd.png)
How do I get the filename of the currently playing item from a playlist containing more than one?
I know that I can use playerInstance.getPlaylistItem()['file'] to return the name of the _first_ source file in the currently playing playlist, but I have a playlist containing low and high resolution versions of the same video, and I would like to return the name corresponding to the version the user is actually watching. I have reviewed the API documentation, and I cannot see a way of doing this. Am I missing something obvious? What I need is a way to return the index of the current source within the current playlist item, _not_ the index of the current playlist item within the playlist array - the latter is always 0, since there is only one item in it.