1. 06 Jun, 2021 8 commits
    • Fix issue where getFirstSampleIndex was called on spliced in chunks. · 6d6efed6
      We need to avoid reading and skipping into preload chunks as they
      may need to be discarded. The current code iterates over all chunks,
      but this can be simplified by just checking the last chunk knowing
      that the preload chunk must always be the last one.
      
      As a result, we avoid calling getFirstSampleIndex on all chunks. This
      is a bug since the method is not allowed to be called for chunks
      that have been spliced in. This still leaves the smaller issue of
      potentially calling this method for spliced-in preload chunks, which
      will be solved separately.
      
      Issue: #8937
      
      PiperOrigin-RevId: 375053638
      tonihei committed
    • Don't allow spliced-in preload chunks. · 10c19afa
      Preload chunks may still need to be discarded. However, we don't
      currently support discarding spliced-in chunks. Thus, we need to
      avoid loadng a preload chunk that needs to be spliced-in.
      
      Issue: #8937
      
      #minor-release
      
      PiperOrigin-RevId: 374851661
      tonihei committed
    • Define the default RTSP character set. · 5fc6b2ff
      #minor-release
      
      PiperOrigin-RevId: 374433331
      claincly committed
    • Fix `core_settings.gradle` to not assume `exoplayerRoot` is absolute · 617267bf
      Gradle warns against passing a relative path to `new File(String)`:
      https://docs.gradle.org/current/userguide/working_with_files.html#sec:single_file_paths
      
      This change fixes all usages of `exoplayerRoot` to pass it to Gradle's
      `Project.file()` first, which returns an absolute `File`.
      
      To reproduce the problem in Issue: #8927:
      1. Checkout ExoPlayer git project, to e.g. `~/ExoPlayer/exoplayer-git`
      2. Create a new Android Studio project in e.g. `~/AndroidStudioProjects/exoplayer-test`
      3. Edit the new project's `settings.gradle` file as described in
         https://github.com/google/ExoPlayer/blob/release-v2/README.md
         using a relative path for `exoplayerRoot`:
         ```
         gradle.ext.exoplayerRoot = '../../ExoPlayer/exoplayer-git'
         ```
      4. In a shell:
         ```bash
         $ cd ~/AndroidStudioProjects/exoplayer-test/app
         $ ../gradlew build
         ```
      
      (Step 4 is important, it seems running `./gradlew` from the project root
      doesn't trigger the relative path problem)
      
      This change fixes the problem, and also works with `exoplayerRoot` as a
      `File` or `Path` object. `String`, `File` and `Path` all work with relative or
      absolute paths:
      ```
      gradle.ext.exoplayerRoot = '/home/ibaker/ExoPlayer/exoplayer-git'
      gradle.ext.exoplayerRoot = '../../ExoPlayer/exoplayer-git'
      gradle.ext.exoplayerRoot = new File('/home/ibaker/ExoPlayer/exoplayer-git')
      gradle.ext.exoplayerRoot = new File('../../ExoPlayer/exoplayer-git')
      gradle.ext.exoplayerRoot = Paths.get('/home/ibaker/ExoPlayer/exoplayer-git')
      gradle.ext.exoplayerRoot = Paths.get('../../ExoPlayer/exoplayer-git')
      ```
      
      Note: The Path versions above require importing `java.nio.file.Paths`
      and changing the `apply from:` line in the project's settings.gradle
      file to something like:
      ```
      apply from: file(gradle.ext.exoplayerRoot.resolve('core_settings.gradle'))
      ```
      It's assumed that a project wanting to pass a `Path` will make these
      changes.
      
      Issue: #8927
      PiperOrigin-RevId: 374421627
      ibaker committed
    • Add track number & total to MediaMetadata · 941a71ae
      #minor-release
      
      PiperOrigin-RevId: 374235979
      samrobinson committed
    • Add an artwork field to MediaMetadata · 6bba218e
      #minor-release
      
      PiperOrigin-RevId: 373410795
      samrobinson committed
    • Update avcLevelToMaxFrameSize for AVCLevel6, 61 and 62 · 795594f8
      PiperOrigin-RevId: 374161340
      olly committed
    • Merge pull request #8860 from KeiMurayamaS:dev-v2-add-mpegh-parser · cfe28110
      PiperOrigin-RevId: 373142159
      kim-vde committed
  2. 03 Jun, 2021 2 commits
  3. 17 May, 2021 3 commits
  4. 14 May, 2021 3 commits
  5. 13 May, 2021 3 commits
  6. 12 May, 2021 6 commits
  7. 10 May, 2021 10 commits
  8. 07 May, 2021 5 commits