media/libraries
christosts ec08db458e 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

#minor-release

PiperOrigin-RevId: 584321443
2023-11-21 07:39:46 -08:00
..
cast Return empty timeline when media info is null 2023-11-20 09:55:36 -08:00
common Emit onPositionDiscontinuity event when silence is skipped 2023-11-20 07:50:13 -08:00
container Add support for flattening SEF files with H.265 2023-10-17 09:26:14 -07:00
database Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
datasource Split openAssetFileDescriptor from RawResourceDataSource.open 2023-10-31 04:38:57 -07:00
datasource_cronet Do not trim audio samples by changing their timestamp 2023-06-29 22:50:04 +00:00
datasource_httpengine Implement HttpEngineDataSource, a HttpDataSource using the [HttpEngine](https://developer.android.com/reference/android/net/http/HttpEngine) API. 2023-10-18 14:17:56 -07: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 Satisfy nullness checker correctness by using local variable 2023-10-31 12:56:32 +00:00
decoder_av1 Add Decoder.setOutputStartTimeUs and use it in extension decoders 2023-10-04 10:37:25 -07:00
decoder_ffmpeg Fix proguard rule to also keep referenced class name 2023-11-03 10:53:36 -07: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 2023-11-21 07:39:46 -08:00
decoder_opus Explicitly mark DecoderOutputBuffer as shouldBeSkipped if needed 2023-10-03 04:28:21 -07:00
decoder_vp9 Add Decoder.setOutputStartTimeUs and use it in extension decoders 2023-10-04 10:37:25 -07:00
effect HDR: Update PQ to SDR tone-mapping to renderengine. 2023-11-14 07:43:39 -08:00
exoplayer Avoid clipping live offset override to min/max offsets 2023-11-21 06:49:19 -08:00
exoplayer_dash Adjust Javadoc 2023-11-20 02:54:57 -08:00
exoplayer_hls Adjust Javadoc 2023-11-20 02:54:57 -08:00
exoplayer_ima Set MIME type from IMA SDK on ads MediaItem 2023-11-14 09:12:07 -08:00
exoplayer_rtsp Merge pull request #491 from v-novaltd:dsparano-exo128 2023-10-17 06:35:19 -07:00
exoplayer_smoothstreaming Adjust Javadoc 2023-11-20 02:54:57 -08:00
exoplayer_workmanager Remove exoplayer2-only javadoc machinery from media3 2023-06-05 09:47:58 +00:00
extractor Merge pull request #793 from androidx:mpegh_extractor_changes 2023-11-21 05:07:27 -08: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 Adjust Javadoc 2023-11-20 02:54:57 -08:00
test_data MidiExtractor: mark only the first sample as key-frame 2023-11-21 07:39:46 -08: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-16 08:14:38 -07:00
test_session_current Add test case to test position conversion when POSITION_UNKNOWN 2023-11-21 02:24:30 -08:00
test_utils Use full MediaItem to define ad playbacks 2023-11-14 08:35:14 -08:00
test_utils_robolectric Enable offload scheduling by default for audio-only offload playback 2023-09-13 06:46:50 -07:00
transformer Make vararg APIs more robust 2023-11-17 09:51:39 -08:00
ui Workaround layout problems with Material Design 2023-11-15 02:57:03 -08: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 2023-11-15 02:34:40 -08:00