Commit graph

20326 commits

Author SHA1 Message Date
Rohit Singh
6aa80b334a Minor refactoring based on internal review 2024-04-29 17:47:48 +01:00
Rohit Singh
c34c3db87f fix for packet header split over 2 PES packets 2024-04-26 16:02:58 +01:00
Rohit Singh
3d974793f9 add test sample for packet header split across PES packets 2024-04-26 16:01:42 +01:00
Rohit Singh
ad7ca92e29 Refactor logic to handle edge case 2024-04-25 15:33:06 +01:00
Rohit Singh
a49ce59d05 Add a test case which has sample with rai set and dai unset 2024-04-24 12:42:38 +01:00
Rohit Singh
5b3a50fca8 Changes based on internal review 2024-04-22 17:25:40 +01:00
Rohit Singh
e412987248 Refactor 2024-04-18 15:00:18 +01:00
Rohit Singh
0102f4b512 Move MpeghUtil to extractor.ts package 2024-04-18 12:50:43 +01:00
Rohit Singh
4822033a6c More changes based on internal review 2024-04-17 18:17:03 +01:00
Rohit Singh
71db918f91 Update javadoc for 2024-04-16 18:11:52 +01:00
Rohit Singh
aba51191aa More changes based on the internal review 2024-04-16 17:12:12 +01:00
Rohit Singh
cbe17bcd0a Changes based on internal review 2024-04-16 14:51:47 +01:00
Rohit Singh
6811b8394b Changes based on internal comments 2024-04-12 15:08:00 +01:00
Rohit Singh
ae77333d0f Adhere to the change in signature of ElementaryStreamReader 2024-04-12 15:08:00 +01:00
Rohit Singh
cfa7f1f0a7 Format with google-java-format 2024-04-12 15:08:00 +01:00
Rohit Singh
71673d65f3 further improvements 2024-04-12 15:07:59 +01:00
Rohit Singh
6ac888ec3b Minor formatting changes 2024-04-12 15:07:59 +01:00
rohks
b6990c3c5b improve PES packet parsing for MPEG-H 2024-04-12 15:07:59 +01:00
Rohit Singh
5df45f7e64 Changes based on internal review 2024-04-12 15:07:59 +01:00
rohks
44b2071ee0 Add nullness checks 2024-04-12 15:07:59 +01:00
rohks
2da1bb1877 Format with google-java-format 2024-04-12 15:07:59 +01:00
rohks
66718c2b3d Remove validateBitsAvailability checks 2024-04-12 15:07:59 +01:00
rohks
e53951d790 changes/improvements according to review comments 2024-04-12 15:07:59 +01:00
rohks
b9c2ee4d24 Rearrange elements based on Google coding conventions and other minor changes 2024-04-12 15:07:59 +01:00
rohks
43cf32738d - remove 'NonNull' and add 'UnstableApi' annotation
- rename 'checkBitsAvailable()' to 'validateBitsAvailability()'
- rename 'ParseState' to 'State'
- rename State values to begin with 'STATE_'
- make use of 'Format.NO_VALUE' and 'C.INDEX_UNSET'
- adjust documentation
2024-04-12 15:07:59 +01:00
rohks
3aff715824 use @IntDef instead of enum 2024-04-12 15:07:59 +01:00
rohks
6472ba1194 - add MpeghReader.java and MpeghUtil.java
- add stream type for MPEG-H
- use MpeghReader in DefaultTsPayloadReaderFactory
- add MPEG-H TS test samples and corresponding extractor dumps
2024-04-12 15:07:58 +01:00
ibaker
c151d13a1d Fix Kotlin "local dependency" instructions
The previous syntax doesn't seem to work. I assume I tested it when I
wrote 2eafa570e9,
so maybe it's stopped working since? Or maybe I'm wrong and it never
worked. This syntax was originally proposed in Issue: google/ExoPlayer#6339 and
seems to work today.

PiperOrigin-RevId: 624161848
2024-04-12 06:48:26 -07:00
huangdarwin
25e99af9e7 More strongly discourage use of DebugSurfaceView
This was always intended as a debug API only, but its inclusion in media3.common and public visibility has led to partners sometimes experimenting with this API and complaining when it doesn't work as expected.

PiperOrigin-RevId: 624158798
2024-04-12 06:34:06 -07:00
Copybara-Service
f13c879cd0 Merge pull request #1255 from phcannesson:fix-cast-media-item-conversion
PiperOrigin-RevId: 624147863
2024-04-12 05:45:50 -07:00
Marc Baechinger
5788286b68 add regression test for DefaultMediaItemConverter 2024-04-12 14:16:24 +02:00
tofunmi
1f40451631 UltraHDR: use HdrCapabilitiesUtil to assume device supports hdr editing
PiperOrigin-RevId: 624122752
2024-04-12 04:00:58 -07:00
bachinger
fc1d60beb9 Do not set a duration for live streams
A live window with changing duration can't be properly
displayed in a media notification. The duration constantly
changes and creates a nervous jumping seekbar that is not
really useful.

This change sets the duration for live streams to `C.TIME_UNSET`
when publishing the player state to the platform session. This
way no duration is sent to the platform session which prevents
media controls from drawing a seekbar.

Issue: androidx/media#1256
PiperOrigin-RevId: 624112541
2024-04-12 03:14:41 -07:00
claincly
8ba44ad2b1 Use Builder in deprecated constructors
PiperOrigin-RevId: 623919957
2024-04-11 13:21:32 -07:00
claincly
b1127ed735 Add support for codec importance
Set an importance value when configuring the codec in `Codec.Factory`,

PiperOrigin-RevId: 623902251
2024-04-11 12:19:29 -07:00
tofunmi
a154c98faa Fix test setup for exportUltraHdrImageThenHdrVideo_exportsHdr
make sure compostion.experimentalSetRetainHdrFromUltraHdrImage(true) so that we get hdr output

PiperOrigin-RevId: 623773784
2024-04-11 03:44:53 -07:00
kimvde
0b9180aa4f Clean-ups in VideoSinkProvider Javadoc
PiperOrigin-RevId: 623737397
2024-04-11 00:54:59 -07:00
huangdarwin
47964ff696 Make a method static
This methods doesn't need to be non-static, and can have less state assumed if static

PiperOrigin-RevId: 623466017
2024-04-10 05:47:37 -07:00
ibaker
556ddf4b30 Remove SVG link TODOs now exoplayer2 is no longer published
This removes the TODOs without updating the links, because the
DAC-hosted images are not co-located with the hosted javadoc (unlike
when these images were referenced on exoplayer.dev before 10342507f7),
and therefore we would need to include the full path anyway, at which
point it seems clearer and more robust to keep using a fully-qualified
URL with the domain too.

PiperOrigin-RevId: 623452217
2024-04-10 04:40:33 -07:00
Googler
d71e062780 Add recommendation on setting frame rate for images
PiperOrigin-RevId: 623214178
2024-04-09 10:43:13 -07:00
bachinger
5a84e09a0e Use zero offset when delegating EMSG sample data
When delegating EMSG samples in `HlsSampleStreamWrapper`,
the offset passed into `sampleMetadata(..)` of the delegate
`TrackOutput` must be zero because it is called immediately
after `sampleData(..)` is called.

The condition to trigger this issue is that more than one
metadata samples are pending in `pendingMetadataSampleInfos`
of `FragmentedMp4Extractor` which produces non-zero offsets.

Issue: androidx/media#1002
Issue: androidx/media#1203
PiperOrigin-RevId: 623210835
2024-04-09 10:32:35 -07:00
huangdarwin
24e92bb04f Update TODO link for mastering luminance
PiperOrigin-RevId: 623186293
2024-04-09 09:13:17 -07:00
michaelkatz
2622e566d3 Version bump to media3:1.4.0-alpha01
#minor-release

PiperOrigin-RevId: 623185060
2024-04-09 09:09:22 -07:00
Marc Baechinger
14fb3860e0 Update release notes 2024-04-09 17:35:40 +02:00
Paul-Hubert Cannesson
2e90d1d7c6 Fix album title metadata in media item conversion 2024-04-09 17:11:22 +02:00
samrobinson
81b9739bda Consolidate dump files for item effect vs composition effect.
PiperOrigin-RevId: 623161140
2024-04-09 07:33:38 -07:00
michaelkatz
2c015a5417 Update RELEASENOTES for 1.4.0-alpha01
#minor-release

PiperOrigin-RevId: 623158370
2024-04-09 07:20:18 -07:00
samrobinson
24b86e73cb Group together PCM audio samples by fixed size in CapturingMuxer dumps.
Reduces flakiness of tests that assert on PCM audio. Tests now have to
clearly choose how they want the capturing muxer to handle pcm audio.

Note that the only dump files that have changed are those that deal
with PCM audio (.wav, sowt, twos, silence). Because of the continuous
nature of PCM, timestamps are not part of the dump.

PiperOrigin-RevId: 623155302
2024-04-09 07:04:49 -07:00
tianyifeng
9c72fa8a7a Add reset to BasePreloadManager to release all the holding sources
Compared to `release`, the `reset` method doesn't release the preload manager instance. This applies to the use case that an app wants to discard all the sources but keep the preload manager active for later usage.

Also rename the `releaseSourceInternal` to `removeSourceInternal`, as the latter sounds more generic for different preload manager implementations.

PiperOrigin-RevId: 623148723
2024-04-09 06:30:32 -07:00
ibaker
5d6f514897 Remove references to LegacyPlayerView
This is an internal name for the exoplayer2 `PlayerView` that was never
published as part of media3.

PiperOrigin-RevId: 623120907
2024-04-09 04:12:42 -07:00