Commit f52e4bed by olly Committed by kim-vde

Don't clear audioSessionId when audio disabled

Issue: #8585
#minor-release
PiperOrigin-RevId: 357553237
parent 1b6dd40a
...@@ -6,6 +6,9 @@ ...@@ -6,6 +6,9 @@
* Add support for MP4 and QuickTime meta atoms that are not full atoms. * Add support for MP4 and QuickTime meta atoms that are not full atoms.
* UI: * UI:
* Add builder for `PlayerNotificationManager`. * Add builder for `PlayerNotificationManager`.
* Audio:
* Fix `SimpleExoPlayer` reporting audio session ID as 0 in some cases
([#8585](https://github.com/google/ExoPlayer/issues/8585)).
* Library restructuring: * Library restructuring:
* `DebugTextViewHelper` moved from `ui` package to `util` package. * `DebugTextViewHelper` moved from `ui` package to `util` package.
* Spherical UI components moved from `video.spherical` package to * Spherical UI components moved from `video.spherical` package to
......
...@@ -2140,7 +2140,6 @@ public class SimpleExoPlayer extends BasePlayer ...@@ -2140,7 +2140,6 @@ public class SimpleExoPlayer extends BasePlayer
analyticsCollector.onAudioDisabled(counters); analyticsCollector.onAudioDisabled(counters);
audioFormat = null; audioFormat = null;
audioDecoderCounters = null; audioDecoderCounters = null;
audioSessionId = C.AUDIO_SESSION_ID_UNSET;
} }
@Override @Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment