I'm creating a dynamic playlist widget that I want to manage my RV session. To append media to the end of my RV session, I'm using this command:
commands.addSourceVerbose(string; string[] fileNames, string tag = nil)
To remove media from my RV session, I'm using this command:
commands.deleteNode(void; string nodeName)
Easy enough. But how do I insert media into my RV session at a specific index?
For example, say I use my widget to add three pieces of media to the RV session such that the inputs in my session manager look like this:
- Source1
- Source2
- Source3
Now I want to add Source4, but I want to add it between Source1 and Source2 so it looks like this:
- Source1
- Source4
- Source2
- Source3
Using RV's API, what's the best way to achieve this?
Thanks!