1. 20 Feb, 2018 2 commits
  2. 19 Feb, 2018 5 commits
    • Bump to 2.7.0 and prepare release notes · 69496eb1
      -------------
      Created by MOE: https://github.com/google/moe
      MOE_MIGRATED_REVID=186200840
      olly committed
    • Move DownloadManagerTest to Robolectric. · 24067851
      The waiting for a ConditionVariable to be false was replaced by a
      CountDownLatch whose count is asserted to be one. The timeout of a
      ConditionVariable doesn't work in Robolectric unless someone is
      manually increasing the SystemClock time.
      
      -------------
      Created by MOE: https://github.com/google/moe
      MOE_MIGRATED_REVID=186003125
      tonihei committed
    • Fix content progress updates and position faking · 56c9d023
      Occasionally the player could transition from playing content to playing an ad
      after IMA called playAd. The discontinuity triggered faking the content
      position, and the fake position was passed to IMA when content resumed causing
      the wrong ad group to be loaded. Fix this by only faking the position if the
      player transitions before playAd.
      
      Also fix the calculation of the expected ad group index for a postroll ad, and
      wait for the player to transition back from ad to content before passing a
      content progress update.
      
      -------------
      Created by MOE: https://github.com/google/moe
      MOE_MIGRATED_REVID=185994229
      andrewlewis committed
    • Catch exceptions in all IMA callbacks · 6c3b677d
      If an exception is thrown in an IMA callback it crashes the process with lots of
      logging from WebView (including several stack traces, etc.). This change wraps
      ImaAdsLoader code that might throw, skips any remaining ads (as the errors are
      not recoverable, in general) and notifies a new load error callback so that the
      application can implement its own handling. The intention is to make the loader
      robust to unexpected requests from IMA and avoid crashes.
      
      Also handle IMA loading an ad in an ad group that has no available ads. In rare
      cases IMA will try to load an ad for which an error was previously notified, so
      this drops those load requests allowing playback of the content to continue.
      
      -------------
      Created by MOE: https://github.com/google/moe
      MOE_MIGRATED_REVID=185985850
      andrewlewis committed
  3. 16 Feb, 2018 29 commits
  4. 08 Feb, 2018 4 commits
    • Link libopus statically with libopusJNI · f432b521
      We now build one .so file for the opus extension in the
      internal build, so make the external build work the same way.
      
      -------------
      Created by MOE: https://github.com/google/moe
      MOE_MIGRATED_REVID=184962896
      andrewlewis committed
    • Add issue link to release notes · 0384ff07
      -------------
      Created by MOE: https://github.com/google/moe
      MOE_MIGRATED_REVID=184844870
      andrewlewis committed
    • Fix ad group skipping · 6fc70149
      Allow skipping an ad group when requested by IMA, even if we aren't currently
      playing one, to handle cases where no ads in an ad group will load (so IMA
      requests resuming content but we never managed to start playing an ad).
      
      Use the known ad group index (rather than the expected one) when handling ad
      group load errors. This ensures we skip the right ad group if we notify IMA of
      playback errors for every ad in the ad group, then IMA notifies that the ad
      group is empty via a load error.
      
      Also make some other miscellaneous small fixes to ads code:
      
      - Avoid warning about unexpected ad group indices more than once.
      - Output a warning if the ad count in an ad group decreases.
      - Remove unnecessary assertion.
      - Fix getting the ad duration for ad indices that haven't loaded yet.
      - Allow setting an ad group state to its current value.
      - Fix javadoc for setting the ad resume position.
      
      -------------
      Created by MOE: https://github.com/google/moe
      MOE_MIGRATED_REVID=184831495
      andrewlewis committed
    • Get the next ad index to play in MediaPeriodQueue · 165fce4c
      The ad index in the ad group may need to skip over ads that failed to load, so
      it can't just be incremented any more.
      
      -------------
      Created by MOE: https://github.com/google/moe
      MOE_MIGRATED_REVID=184812556
      andrewlewis committed