Regression: Audio from ad and video are overlapping

Topics: Windows 8 JavaScript
Feb 17 at 1:06 AM
Edited Feb 17 at 1:07 AM
We have recently upgraded the versions our application is using for PlayerFramework and MicrosoftHLSSDK and related dependencies, in order to attempt to solve a Windows 10 Release-mode-only crash we were experiencing in HLSClient.dll. A bit after the upgrades, our client turned ads back on, and now we've found that our ads have audio overlapping the video. Fortunately we upgraded components just a few at a time, and have found that reverting just the checkin with upgrades to the following components makes the issue go away:
  • Microsoft.PlayerFramework.Js.Adaptive.Win81
  • Microsoft.PlayerFramework.Js.Advertising.Win81
  • Microsoft.PlayerFramework.Js.TimedText.Win81
  • Microsoft.PlayerFramework.Js.Win81
Basically, the upgrade to PlayerFramework of those 4 components introduces a regression where ad playback stops fully blocking playback of the main video anymore. Any ideas?
Feb 17 at 6:43 PM
Interestingly, on, if we create an override for PlayerFramework.Plugins.AdSchedulerPlugin.prototype._initializeAds like this, so we can place a good breakpoint:
    var originalInitAds = PlayerFramework.Plugins.AdSchedulerPlugin.prototype._initializeAds;
    PlayerFramework.Plugins.AdSchedulerPlugin.prototype._initializeAds = function () {;  // <-- breakpoint here
Then we discover, AT the breakpoint, that the audio of the main video is already playing, before _initializeAds was even called... I can hear the main video's audio while sitting at the breakpoint. So the PlayerFramework is, at least in, letting video playback begin before even preroll ads could possibly have been scheduled / set up... and then preroll ad kicks in but doesn't pause the main video?