This fixes some small niggles: 1. `inferContentType(String)` is documented to take a path, but in the tests we're passing full URIs. 2. A `String` parameter is usually a path, but also a MIME type or an extension. In the new methods, the meaning of a `String` parameter is always clear from the name of the method. 3. `inferContentType(String)` is always passed an extension in 'production' code (which has to be manually prefixed with a dot). 4. `inferContentType(Uri, @Nullable String)` always ignores the Uri if the String is non-null. IMO this logic is clearer to a reader if it's just in-lined at the call-site. These methods are used from the demo apps, so will be part of the stable API. PiperOrigin-RevId: 444826053
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| audio | Loading commit data... | |
| drm | Loading commit data... | |
| metadata | Loading commit data... | |
| offline | Loading commit data... | |
| source | Loading commit data... | |
| text | Loading commit data... | |
| trackselection | Loading commit data... | |
| util | Loading commit data... | |
| video | Loading commit data... | |
| BundleListRetrieverTest.java | Loading commit data... | |
| CTest.java | Loading commit data... | |
| DeviceInfoTest.java | Loading commit data... | |
| FormatTest.java | Loading commit data... | |
| ForwardingPlayerTest.java | Loading commit data... | |
| MediaItemTest.java | Loading commit data... | |
| MediaMetadataTest.java | Loading commit data... | |
| PlaybackExceptionTest.java | Loading commit data... | |
| PlaybackParametersTest.java | Loading commit data... | |
| PositionInfoTest.java | Loading commit data... | |
| RatingTest.java | Loading commit data... | |
| TimelineTest.java | Loading commit data... | |
| TracksTest.java | Loading commit data... |