- 18 Feb, 2019 40 commits
-
-
PiperOrigin-RevId: 234042474
olly committed -
Previously we would get a new AudioTrack and flush all audio processors if any AudioProcessor needed to be flushed on reconfiguration. This was problematic for the case of TrimmingAudioProcessor because it could become active or inactive due to transitioning to a period with gapless metadata or without it (we don't keep it active all the time because it is wasteful to populate its end buffer for content that is not gapless). This change handles the case where we don't need an AudioTrack but AudioProcessors do need to be flushed. In this case we drain all the audio processors when next handling data then switch to the new configuration. This avoids truncation when period transitions change whether TrimmingAudioProcessor is active but don't require a new AudioTrack, and is also a step towards draining the AudioTrack when transitioning between periods if we do need a new AudioTrack. To do this, it needs to be possible to drain any pending output data from an AudioProcessor after it's configured to a new format, so this change makes sure AudioProcessors allow calling playToEndOfStream and getOutput after reconfiguration and before flush. PiperOrigin-RevId: 234033552
andrewlewis committed -
PiperOrigin-RevId: 234025553
andrewlewis committed -
- Fix nullness warnings - Fix annotations - Make TeeAudioProcessor flush its sink for every format change PiperOrigin-RevId: 234017068
andrewlewis committed -
This cleanup is in preparation for draining audio processors on reconfiguration to a format that doesn't require a new AudioTrack to be created. PiperOrigin-RevId: 233990983
andrewlewis committed -
PiperOrigin-RevId: 233953493
aquilescanta committed -
AlertDialog owns its view, which causes problems with TabLayout on API 21 and 22. Now using AppCompatDialog instead so that we can own the view ourselves. Also: - Renamed layout files from download_xyz to track_selection_xyz. - Added OK and Cancel buttons to the view. - Applied alert dialog style to the "normal" dialog to get a nicer UI. PiperOrigin-RevId: 233944647
tonihei committed -
This CL is effectively a rollback of cr/233072247. PiperOrigin-RevId: 233793032
aquilescanta committed -
*** Reason for rollback *** Pending discussions about cast *** Original change description *** Remove default-receiver-related classes from Cast demo app *** PiperOrigin-RevId: 233790699
aquilescanta committed -
PiperOrigin-RevId: 233765839
aquilescanta committed -
PiperOrigin-RevId: 233723028
aquilescanta committed -
We need additional initial selection settings and a configurable title. The update logic for the track selection parameters moved to a static helper method in TrackSelectionDialog. PiperOrigin-RevId: 233713788
tonihei committed -
PiperOrigin-RevId: 233653857
olly committed -
PiperOrigin-RevId: 233612344
tonihei committed -
PiperOrigin-RevId: 233594542
olly committed -
PiperOrigin-RevId: 233587404
olly committed -
PiperOrigin-RevId: 233587184
eguven committed -
PiperOrigin-RevId: 233584155
tonihei committed -
PiperOrigin-RevId: 233582549
tonihei committed -
PiperOrigin-RevId: 233578341
aquilescanta committed -
PiperOrigin-RevId: 233577854
aquilescanta committed -
PiperOrigin-RevId: 233576600
andrewlewis committed -
Stop encoding/decoding presentation time as part of the message. What's actually in emsg boxes is a presentation time delta, which is why it's only 32 bits, and hence why it doesn't handle large absolute timestamps. We were using this field to hold absolute timestamps only for the purpose of passing presentation times from DashManifestParser.parseEvent back to the calling method. After this change, we return Pair<Long, EventMessage> instead. Issue: #5490 PiperOrigin-RevId: 233561731
olly committed -
Also detect ISOBMFF brand for DV when sniffing. PiperOrigin-RevId: 233433449
andrewlewis committed -
PiperOrigin-RevId: 233428556
olly committed -
PiperOrigin-RevId: 233421480
eguven committed -
builder.mActions is marked as @RestrictTo(LIBRARY_GROUP). We'll just have to put up with notification flicker on KitKat if the actions change. PiperOrigin-RevId: 233420076
olly committed -
PiperOrigin-RevId: 233418784
olly committed -
- Remove unused TAG - android.Theme.Material can only be used from API level 21 - Rm "Base" from activity name for consistency PiperOrigin-RevId: 233410603
olly committed -
Also add explicit Lint.IfChange/ThenChange rules to make it clearer what needs to be done when changing one of the code paths that's accessed via reflection. PiperOrigin-RevId: 233406709
olly committed -
Switch from passing an ad UI ViewGroup to passing an object that can also provide information about controls overlays. Also switch to using a dedicated overlay for ads instead of the overlay frame layout, which apps have easy access to. PiperOrigin-RevId: 233393500
andrewlewis committed -
We'll toggle the publish flag only when doing releases. Issue: #5477 PiperOrigin-RevId: 233392733
olly committed -
PiperOrigin-RevId: 233390513
olly committed -
PiperOrigin-RevId: 233372668
aquilescanta committed -
Supporting multiple overrides allows to select tracks from multiple groups, if enabled. As more options are added, the creation of the dialog is moved to a separate builder class. PiperOrigin-RevId: 233366282
tonihei committed -
PiperOrigin-RevId: 233090773
aquilescanta committed -
PiperOrigin-RevId: 233089799
aquilescanta committed -
This will be used instead of the current overlay FrameLayout (which apps can interact with directly). PiperOrigin-RevId: 233077175
andrewlewis committed -
PiperOrigin-RevId: 233073011
aquilescanta committed -
PiperOrigin-RevId: 233072247
aquilescanta committed
-