Also, whenever I exit out of the video, then choose the next video from the main menu, the ‘contentIndex’ from the original playlist persists and it starts playing THAT video. So if I’m at contentIndex = 3, then choose the next playlist, I expect it should restart at 0, but it instead starts at 3.
The contentindex isn’t reliable or as fast as we would prefer. It usually changes moments AFTER the video has started playing. You’ll need to work around that by monitoring the player state field. If contentisplaylist=true, then “playing” fires once and plays the playlist item [0]. When the contentindex changes on video #2 in the list it is contentindex[1], and when it’s done with the playlist it will be the last item in the playlist when the state reports “finished”. It is tricky to set up but it’s possible. I basically delete the playlist contentnodes when it’s done and recreate them before setting the video control to “play” and that appears to fix itself.
Still getting the original issue of the ad audio playing after backing out of it. I can’t figure out which thread it’s running on and how to shut it down.
After I click “<-”, it does hit the ‘exitPlayer()’ sub, and I’m invalidating the PlayerTask there… but it looks like the PlayerTask node is still there, even though I set it to “invalid”