Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

Accessing playlist feed from a plugin

2 replies [Last post]

Hi,

Can anyone please help me out and tell me how to access the index of the currently playing item in a playlist and the playlists length from within a plugin.

I want to only show the plugin at the end of the playlist but at the moment I am showing it when the ModelEvent changes to completed. This means it flashes up inbetween items in the playlist.

I'm rather stumped - any help greatly appreciated.

Cheers
Alex

Hi Alex,

view.config.item will give you the currently playing item, view.getPlaylist() will give you the playlist

Brilliant thanks Zachary!