- 15 Apr, 2021 1 commit
-
-
PiperOrigin-RevId: 368413660
krocard committed
-
- 14 Apr, 2021 3 commits
-
-
PiperOrigin-RevId: 368388742
andrewlewis committed -
PiperOrigin-RevId: 368383121
jaewan committed -
It provides a way to associate PlaybackState with the current media item. Startblock: <unknown commit> is submitted PiperOrigin-RevId: 368354775
gyumin committed
-
- 13 Apr, 2021 12 commits
-
-
PiperOrigin-RevId: 368235728
bachinger committed -
PiperOrigin-RevId: 368226576
ibaker committed -
Previously, we had separate MSG_SET_SURFACE and MSG_SET_VIDEO_DECODER_OUTPUT_BUFFER_RENDERER messages for setting different types of supported output. Use of these constants to switch between outputs during use of a player was confusing because not all video renderers support both message types. To switch from VideoDecoderOutputBufferRenderer to a Surface, it was sufficient just to send MSG_SET_SURFACE, since all video renderers support this and clear any other output that might be set. Conversely, to switch in the opposite direction, just sending a MSG_SET_VIDEO_DECODER_OUTPUT_BUFFER_RENDERER was not sufficient, because not all video renderers handle this message to clear any previous output. Hence it was necessary to explicitly clear a previously set surface using a separate MSG_SET_SURFACE message. Passing two messages to switch the output may prevent renderers from implementing the output switch efficiently. This change passes all outputs using a single message type, and requires that all renderers treat unsupported outputs as though null were passed (i.e., they clear any existing output). There are some other miscellaneous improvements: 1. Non-surface outputs are now passed to onRenderedFirstFrame. This fixes a bug in SimpleExoPlayer's onRenderedFirstFrame, where previously it could not correctly equality check the output corresponding to the event to its current output in the VideoDecoderOutputBufferRenderer case. 2. Fix SimpleExoPlayer to report surface size changes for the VideoDecoderOutputBufferRenderer case. Even though the surface is rendered to indirectly in this case, we can still query (and listen to changes to) the surface's size. PiperOrigin-RevId: 368215850
olly committed -
#minor-release Issue: #8781 PiperOrigin-RevId: 368212289
ibaker committed -
String.equalsIgnoreCase depends on the device locale and is discouraged. #minor-release PiperOrigin-RevId: 368211677
ibaker committed -
If this condition isn't true, the player may enter a cycle of discarding and reloading the same format. As minDurationToRetainAfterDiscard is a parameter likely left at its default, and minDurationForQualityIncrease is likely adjusted more often, we correct the value in the problematic case and log a warning instead of asserting it outright to prevent unnecessary app breakages. Issue: #8807 PiperOrigin-RevId: 368207417
tonihei committed -
PiperOrigin-RevId: 368204261
bachinger committed -
Issue: #8755 PiperOrigin-RevId: 368204094
ibaker committed -
This is the right thing to do, as per the GLSurfaceView documentation. This adds (previously omitted) calls to VideoDecoderGLSurfaceView. PiperOrigin-RevId: 368202523
olly committed -
Other properties of SphericalGLSurfaceView (e.g., setDefaultStereoMode) are not plumbed through the PlayerView components, and it doesn't scale to plumb through all properties of all of the SurfaceView types. Applications can instead do: ``` ((SphericalGLSurfaceView) playerView.getVideoSurfaceView()) .setUseSensorRotation(useSensorRotation); ``` PiperOrigin-RevId: 368196537olly committed -
The cronet extension now uses gradle dependencies. PiperOrigin-RevId: 368195878
andrewlewis committed -
PiperOrigin-RevId: 368014991
olly committed
-
- 12 Apr, 2021 4 commits
-
-
PiperOrigin-RevId: 367994410
marcbaechinger committed -
PiperOrigin-RevId: 367992096
gyumin committed -
There is no use case left where we couldn't use a better alternative (either looping in the player, using the Player playlist API, or ConcatenatingMediaSource for advanced cases) PiperOrigin-RevId: 367990981
tonihei committed -
Prior to this change, there were some unrealistic quirks in our Robolectric tests. For example, onRenderedFirstFrame would be called when using FakeVideoRenderer, despite no output to render the frame to ever being set. This change improves the realism of these tests. These changes are required for some improvements being made to how outputs are set on video renderers. PiperOrigin-RevId: 367652169
olly committed
-
- 09 Apr, 2021 12 commits
-
-
PiperOrigin-RevId: 367596648
gyumin committed -
This was added in https://github.com/google/ExoPlayer/commit/9609af3c23383f2fd5571662d271c3013875705d as part of a LSC. The RequiresNonNull annotation doesn't work anymore (it doesn't recognize the outer class member and instead tries to find the same variable on the inner class). So instead of suppressing the warning of the non-fulfilled precondition, we can just check the non-nullness directly and remove the precondition. PiperOrigin-RevId: 367593941
tonihei committed -
This brings in another fix for `NullPointerExceptions` within `WebView` callbacks in the IMA SDK, related to companion ads. Issue: #8447 #minor-release PiperOrigin-RevId: 367591047
andrewlewis committed -
Move AdsLoader inner classes that are also required by the UI module into common. PiperOrigin-RevId: 367414679
olly committed -
The main change here is that VideoDecoderGLSurfaceView now implements VideoDecoderOutputBufferRenderer directly. This avoids SimpleExoPlayer having to cast to VideoDecoderGLSurfaceView, which will be necessary if VideoDecoderGLSurfaceView is moved to the UI module. Instead, the player can cast directly to VideoDecoderOutputBufferRenderer, which could be moved to the Common module. The renderer is also moved to be an inner class, since it's not used anywhere else and since doing this makes it a little easier to move things around. PiperOrigin-RevId: 367398147
olly committed -
PiperOrigin-RevId: 367238434
gyumin committed -
This means there are fewer changes required when exporting these tests as part of the GTS suite run by device manufacturers. PiperOrigin-RevId: 367230977
ibaker committed -
Move CaptionStyleCompat to the UI module, where it's used PiperOrigin-RevId: 367223891
olly committed -
PiperOrigin-RevId: 367204382
jaewan committed -
We added a source that allows mixed placeholder and non-placeholder periods, but have no way to denote that in the Timeline because the placeholder flag only exists on Window level. This causes a bug if the first item in a concatenation has a window-period offset and the player can't detect whether it's still a placeholder or not. Adding this flag to Period allows the player to detect this reliably. In addition we need to make sure that re-resolving pending positions only happens for the first placeholder period where the window-offset can actually change. As all subsequent periods have to start at position 0, so they don't need to be re-resolved (and shouldn't). PiperOrigin-RevId: 367171518
tonihei committed -
* @Nullable is not a TYPE_USE annotation, so should appear before any modifiers and after Javadocs. (see go/java-style#s4.8.5-annotations) This CL looks good? Just LGTM and Approve it! This CL doesn’t look good? This is what you can do: * Suggest a fix on the CL (go/how-to-suggest-fix). * Revert this CL, by replying "REVERT: <provide reason>" * File a bug under go/error-prone-bug for category ErrorProneStyle if the change looks generally problematic. * Revert this CL and not get a CL that cleans up these paths in the future by replying "BLOCKLIST: <provide reason>". This is not reversible! We recommend to opt out the respective paths in your CL Robot configuration instead: go/clrobot-opt-out. This CL was generated by CL Robot - a tool that cleans up code findings (go/clrobot). The affected code paths have been enabled for CL Robot in //depot/google3/java/com/google/android/libraries/exoplayer/METADATA which is reachable following include_presubmits from //depot/google3/third_party/java_src/android_libs/exoplayer/METADATA. Anything wrong with the signup? File a bug at go/clrobot-bug. #codehealth PiperOrigin-RevId: 367053059
olly committed -
PiperOrigin-RevId: 367020270
bachinger committed
-
- 06 Apr, 2021 8 commits
-
-
PiperOrigin-RevId: 366972832
olly committed -
- Take centerControls padding into account to prevent switching to minimal mode too soon - Disable clipping to padding to avoid the edges of controls from being clipped as the view gets smaller Issue: #8763 PiperOrigin-RevId: 366966298
olly committed -
This reverts <unknown commit> Which was a temporary workaround for Issue: #1874 Also add a loop to ensure we process as many metadata items as applicable in each render() call. PiperOrigin-RevId: 366965504
ibaker committed -
PiperOrigin-RevId: 366938045
jaewan committed -
LSC: go/checker-lsc Tested: Sample tests for this CL passed, but some tests failed during the TGP run. Test failures are believed to be unrelated to this CL PiperOrigin-RevId: 366804637olly committed -
PiperOrigin-RevId: 366272937
samrobinson committed -
Issue: #8783 #minor-release PiperOrigin-RevId: 366265419
olly committed -
Make BaseTrackSelection blacklist and isBlacklisted methods non-final. PiperOrigin-RevId: 366256521
olly committed
-