I would try to branch the MASTPlugin and implement the behavior that you describe directly in the plugin. (i'd probably contribute the code back afterwards, since I'd expect the behavior that you describe to be provided out of the box).
Is there anything that can be done at the OSMF or StrobeMediaPlayback level that would make the implementation of this behavior in a plugin easier?
Thanks a ton for your response. One thing that would make this implementation process a lot easier would be to seperate the serial elements of the plugins. When I have two videos (a mast/vast ad and a regular video) they get joined together. It would be nice to have some kind of "controls enabled/disabled" setting so that can be quickly set as well. I'll take a look at the MASTPlugin to see if there is something I can do with that. In the meantime, if anyone else has any suggestions on how to accomplish this, I'm all ears. Thanks in advance.
Did you eventually come up with a solution to this? I'm also using the MAST plugin and want to be able to detect when a linear ad (pre/post/mid roll) is playing versus content so that I can change the control bar state (disable/enable controls).
It's not obvious how to do this without de-constructing the MASTProxyElement returned by the factory back into component MediaElements but even then it's not clear how to work out which are the ads.
Cheers in advance.