Skip to content

Cannot play some multiperiod mpd with tunneling enabled #9317

Closed

Description

@lazarflorian

Steps to reproduce:

  1. Attempt playback of a multiperiod MPD in the ExoPlayer demo app (e.g. media URI = "https://dash.akamaized.net/dash264/TestCasesIOP33/multiplePeriods/2/manifest_multiple_Periods_Add_Remove_AdaptationSet.mpd")

Expected result: the playback works

Actual result: the playback no longer works (only a black screen is displayed); the only way to start the playback is to seek forward a couple of seconds; in the logs the following Warning is printed multiple times:
2021-08-19 15:12:53.004 8850-8923/com.google.android.exoplayer2.demo W/AudioTrack: Spurious audio timestamp (system clock mismatch): 1023, 3048337146, 3057941897, 21312, 29696, 28687

bugreport_v2.12.1.zip
logcat_v2.12.1.txt

URI: https://dash.akamaized.net/dash264/TestCasesIOP33/multiplePeriods/2/manifest_multiple_Periods_Add_Remove_AdaptationSet.mpd

ExoPlayer version: 2.12.1
Android version: 9
Android device: Technicolor UZX8020CHM (https://sites.google.com/view/droid-tv/pay-tv-provider/com-hem-tv-hub), Technicolor UZW4026ELE (https://sites.google.com/view/droid-tv/pay-tv-provider/elisa-elamus), KAONMEDIA OnePlace2 (https://sites.google.com/view/droid-tv/pay-tv-provider/allente-oneplace-2)


Note:

  • The issue reproduces with ExoPlayer version 2.12.0 onwards; I managed to reproduce the issue with 2.14.1 as well.
  • The issue is not reproducible on ExoPlayer version 2.11.8 or older

bugreport_v2.11.8.zip
logcat_v2.11.8.txt


Code changes in the 2.12.1 branch - in PlayerActivity.java we enabled tunneling using the following lines:

DefaultTrackSelector.ParametersBuilder builder =
          new DefaultTrackSelector.ParametersBuilder(/* context= */ this);
      if (Util.SDK_INT >= 21) {
        builder.setTunnelingAudioSessionId(C.generateAudioSessionIdV21(/* context= */ this));
      }
      trackSelectorParameters = builder.build();

Activity

  1. changed the title [-]Cannot play some multipart mpd with tunneling enabled[/-] [+]Cannot play some multiperiod mpd with tunneling enabled[/+] on Aug 19, 2021
  2. lazarflorian commented on Sep 16, 2021

    @lazarflorian
    Author

    I've also tested with the same stream on ExoPlayer Demo using v2.15.0 and the issue still reproduces.

  3. lazarflorian commented on Jan 28, 2022

    @lazarflorian
    Author

    This issue is no longer reproducible using ExoPlayer 2.16.1. However, on 2.16.1 there is currently another issue logged as (#9905) regardless of the tunneling setting.

  4. locked and limited conversation to collaborators on Apr 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    ⌂ Proxy