media/libraries
christosts 124eb31fd2 MidiExtractor: mark only the first sample as key-frame
This change fixes a bug with seeking forward in MIDI. When seeking forward,
the progressive media period attempts to seek within the sample queue, if a
key-frame exists before the seeking position. With MIDI, however, we can
only skip Note-On and Note-Off samples and all other samples must be sent
to the MIDI decoder.

When seeking outside the sample queue, the MidiExtractor already
instructs the player to start from the beginning of the MIDI input. With
this change, only the first output sample is a key-frame, thus the
progressive media period can no longer seek within the sample queue and
is forced to seek from the MIDI input start always.

Issue: androidx/media#704

PiperOrigin-RevId: 584321443
(cherry picked from commit ec08db458e)
2024-01-08 15:26:03 +00:00
..
cast Return empty timeline when media info is null 2024-01-08 15:18:39 +00:00
common Populate MediaMetadata.extras to MediaMetadataCompat 2024-01-08 15:18:38 +00:00
container Merge pull request #491 from v-novaltd:dsparano-exo128 2023-10-23 13:15:17 +01:00
database Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
datasource Add formatting to scheme list in DefaultDataSource javadoc 2023-10-23 13:15:17 +01:00
datasource_cronet Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
datasource_okhttp Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
datasource_rtmp Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
decoder Deprecate decode-only flag. 2023-10-06 15:57:25 +01:00
decoder_av1 Add Decoder.setOutputStartTimeUs and use it in extension decoders 2023-10-06 15:57:25 +01:00
decoder_ffmpeg Fix proguard rule to also keep referenced class name 2024-01-08 14:54:17 +00:00
decoder_flac Add more data to e2etest dumps 2023-07-13 15:33:33 +01:00
decoder_midi MidiExtractor: mark only the first sample as key-frame 2024-01-08 15:26:03 +00:00
decoder_opus Explicitly mark DecoderOutputBuffer as shouldBeSkipped if needed 2023-10-06 15:57:24 +01:00
decoder_vp9 Add Decoder.setOutputStartTimeUs and use it in extension decoders 2023-10-06 15:57:25 +01:00
effect Merge pull request #491 from v-novaltd:dsparano-exo128 2023-10-23 13:15:17 +01:00
exoplayer Avoid clipping live offset override to min/max offsets 2024-01-08 15:21:28 +00:00
exoplayer_dash Parse "f800" as channel count of 5 for Dolby in DASH manifest 2024-01-08 15:08:53 +00:00
exoplayer_hls Calculate HLS live playlist refresh interval accurately 2023-10-23 13:15:16 +01:00
exoplayer_ima Bump IMA SDK version to 3.31.0 2023-09-21 05:54:13 -07:00
exoplayer_rtsp Merge pull request #491 from v-novaltd:dsparano-exo128 2023-10-23 13:15:17 +01:00
exoplayer_smoothstreaming Add functionality to transmit CMCD data using query parameters 2023-08-31 02:11:12 -07:00
exoplayer_workmanager Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
extractor Merge pull request #491 from v-novaltd:dsparano-exo128 2023-10-23 13:15:17 +01:00
muxer Make sure the mdat box is not extended by more than 1 GB at a time. 2023-09-08 04:07:13 -07:00
session Populate MediaMetadata.extras to MediaMetadataCompat 2024-01-08 15:18:38 +00:00
test_data MidiExtractor: mark only the first sample as key-frame 2024-01-08 15:26:03 +00:00
test_exoplayer_playback Add android.namespace to all build.gradle files 2023-05-19 17:19:15 +01:00
test_session_common Only set the queue when COMMAND_GET_TIMELINE is available 2023-10-23 13:15:17 +01:00
test_session_current Add test case to test position conversion when POSITION_UNKNOWN 2024-01-08 15:18:39 +00:00
test_utils Merge pull request #491 from v-novaltd:dsparano-exo128 2023-10-23 13:15:17 +01:00
test_utils_robolectric Enable offload scheduling by default for audio-only offload playback 2023-09-13 06:46:50 -07:00
transformer Merge pull request #491 from v-novaltd:dsparano-exo128 2023-10-23 13:15:17 +01:00
ui Workaround layout problems with Material Design 2024-01-08 15:18:38 +00:00
ui_leanback Prevent forwarding of zero video size to Leanback 2023-08-30 12:20:51 -07:00
lint.xml Update recommended way to suppress @UnstableApi errors in lint.xml 2024-01-08 15:18:38 +00:00