1. 28 Jan, 2022 10 commits
    • Fix flakiness in DefaultPlaybackSessionManagerTest · c9e2a9eb
      Two of the sessions are finished at the same time in the test
      and the order of the corresponding callbacks depends on the randomly
      generated session string and the order these strings are stored in a
      HashSet.
      
      Update test to assert both callbacks are called and they contain the
      right arguments, but don't assert on the order of these two callbacks.
      
      PiperOrigin-RevId: 424548819
      tonihei committed
    • Enforce unit speed for ad playback · 28769087
      Ad playback shouldn't be affected by manual speed adjustments set
      by the user. This change enforces unit speed for ad playback.
      
      Issue: google/ExoPlayer#9018
      PiperOrigin-RevId: 424546258
      tonihei committed
    • Propagate error policy to ProgressiveMediaSource used for subtitles · 8b230d8d
      This only affects playbacks using the
      experimentalUseProgressiveMediaSourceForSubtitles method.
      
      Also update the SingleSampleMediaSource instantiation to be more
      similar, to try and highlight differences like this in future.
      
      PiperOrigin-RevId: 424545980
      ibaker committed
    • Move playback speed update at period transitions to reading period. · 939643af
      In some cases we need to update the PlaybackParameters at period
      boundaries, for example when switching from live to VOD and live
      playback speed adjustment was still active at the point of switching.
      
      Currently, we send the update when the playing MediaPeriod changes in
      EPII, which is slightly too late because the new speed gets only applied
      after the entire existing AudioTrack buffer has been played out.
      
      We can time the update slightly better by updating the values at the
      point where we change the reading period. This makes the update slightly
      too early because it also applies to all samples currently in the
      decoder. But generally, this is a lot better because the time spent
      in the decoder is likely to be considerably lower than the duration of
      the AudioTrack buffer.
      
      Note that this change isn't perfectly aligning to the period boundary,
      but reduces the number of samples with the wrong speed to a minimum.
      If we are getting around to add additional code that allows updating
      the speed at exactly the boundary, it also needs to be triggered from
      the reading period update, so the new code location is also helpful in
      the future.
      
      Issue: google/ExoPlayer#9018
      PiperOrigin-RevId: 424540551
      tonihei committed
    • Wrap expression in paranthesis · 0b683720
      When I locally link to exoplayer source modules as described in the README and I
      do this directly into a fig/citc client, I get an error saying
      "missing_aar_type_workaround.gradle': 79: unexpected token: || @ line 79, column
      29.". I can fix this by wrapping the expression in parenthesis (¯\_(ツ)_/¯).
      
      I don't think this file lands in the public source tree, but if we want to
      correct this, it may help someone from the team.
      
      This CL can be ignored and reverted also.
      
      PiperOrigin-RevId: 424537619
      bachinger committed
    • Fix some lint warnings · d2cc14a9
      PiperOrigin-RevId: 424383900
      olly committed
    • Merge pull request #9893 from moneytoo:mkv-vtt · 497f55a4
      PiperOrigin-RevId: 424382031
      Andrew Lewis committed
    • Merge pull request #9864 from OxygenCobalt:vorbis-comments · b2152f19
      PiperOrigin-RevId: 424355325
      Andrew Lewis committed
    • Apply suggested AVC profile depending on the API version. · 2ed1deb5
      PiperOrigin-RevId: 424322341
      claincly committed
  2. 25 Jan, 2022 30 commits