It would be nice if the service could suppress ads when you don't have inventory. Currently, if you watch a bunch of videos you will see the same two ads (Pantene and Nissan) over and over again.
Unfortunately, there's nothing the player can do. As a dumb client, it respects all ad calls and plays them appropriately. The player really has no logic to determine if that ad has already played. This really should happen in the ad call.
I'm not sure what your code looks like, but from what you posted, it looks correct. Maybe specify a return value? I don't work with C# that much, so this is the best advice I can offer. :D
I'm not sure what your code looks like, but from what you posted, it looks correct. Maybe specify a return value? I don't work with C# that much, so this is the best advice I can offer. :DOoops. Cross post. Please ignore.