1. 06 Aug, 2021 2 commits
  2. 05 Aug, 2021 5 commits
  3. 04 Aug, 2021 6 commits
    • Simplify network-related error codes · 7375fe31
      This change removes ERROR_CODE_IO_NETWORK_UNAVAILABLE,
      ERROR_CODE_IO_NETWORK_CONNECTION_CLOSED, and ERROR_CODE_IO_DNS_FAILED
      in favor of keeping only ERROR_CODE_IO_NETWORK_CONNECTION_FAILED.
      
      PiperOrigin-RevId: 388715972
      aquilescanta committed
    • Tweak use of TimestampAdjuster for seeking · a34809bb
      - Fix use of getTimestampOffsetUs in TsExtractor where
        getFirstSampleTimestampUs should have been used.
      - Don't reset TimestampAdjuster if it's in no-offset mode.
      - Improve comment clarity
      
      #minor-release
      
      PiperOrigin-RevId: 388682711
      olly committed
    • Set HlsSampleStreamWrapper.trackType for audio-only playlists · 4b1609d5
      For audio-only playlists, when formats are communicated to the app with
      AnalyticsListener.onDownstreamFormatChanged(), the passed MediaLoadData
      do not indicate this is an audio track and therefore the
      PlaybackStatsListener cannot derive audio format-related information.
      
      This change sets the main SampleStreamWrappers track type to AUDIO, if
      the master playlist contains only audio variants.
      
      Issue: #9175
      
      #minor-release
      
      PiperOrigin-RevId: 388676060
      christosts committed
    • Change how AnalyticsCollector releases listeners · 07c49cda
      The AnalyticsCollector releases listeners lazily so that listener
      callbacks triggered on the application looper after
      SimpleExoPlayer.release() are still handled. The change in ListenerSet
      to post the onEvents callback on the front of the application looper
      changed (correctly) how onEvents are propagated, however this made
      the AnalyticsCollector deliver onEvents with out-of-order EventTimes.
      
      This change fixes AnalyticsCollector to trigger onPlayerReleased() and
      the matching onEvents() event in the correct order.
      
      #minor-release
      
      PiperOrigin-RevId: 388668739
      christosts committed
    • Standardise API-level specific nested classes · 6157c615
      This change aligns all the names for classes that are 'holders of static
      methods' to be `ApiNN`. Classes that hold state are named meaningfully
      based on that state.
      
      PiperOrigin-RevId: 388641064
      ibaker committed
  4. 03 Aug, 2021 5 commits
  5. 02 Aug, 2021 12 commits
  6. 29 Jul, 2021 3 commits
  7. 28 Jul, 2021 2 commits
    • Fix parameter names on overridden methods · 9c27cfcd
      The dokka javadoc generation tool complains when parameter names don't match between a method and its override. This change updates occurrences where there is currently a mismatch.
      
      Notable renamings that might be controversial:
      - `onPlaybackStateChanged(int state)` to `onPlaybackStateChanged(int playbackState)` affected a lot of lines but seems more consistent with other '-Changed' methods.
      - `handleMessage(int messageType, Object payload)` to `handleMessage(int messageType, Object message)`
      - `ExtractorInput` and `DataSource` inherit `DataReader` which had `read(byte[] target, ...`, while data sources normally called the first parameter `buffer`. I have standardized these all to use `buffer` even though it looks out of place in the `ExtractorInput` interface (which has more `read` methods with `target`).
      
      PiperOrigin-RevId: 387290360
      andrewlewis committed
    • Throw IllegalStateException from Util.gzip() instead of AssertionError · 41fe5aa1
      The documentation on ByteArrayOutputStream and GZIPOutputStream isn't
      completely clear that an IOException will *never* happen, so
      AssertionError seems a bit strong - but it seems very unlikely, so we
      just use IllegalStateException instead.
      
      #minor-release
      
      PiperOrigin-RevId: 387169297
      ibaker committed
  8. 27 Jul, 2021 5 commits