mirror of
https://github.com/samsonjs/media.git
synced 2026-04-11 12:15:47 +00:00
The MP4 data in JPEG motion photos can contain multiple `video/hevc` tracks, but only the first is at a playable frame rate while the others are low-fps, high-res tracks designed for specific use-cases (not direct video playback).
ExoPlayer currently selects the unplayable track by default, because it
has a higher resolution. This change introduces a flag to
`Mp4Extractor` that results in the first video track being marked as
`ROLE_FLAG_MAIN`, and all subsequent video tracks `ROLE_FLAG_ALTERNATE`
- this then results in the playable lower-res track being selected by
default.
PiperOrigin-RevId: 589832072
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| clipping | ||
| dash | ||
| flac | ||
| flv | ||
| image | ||
| jpeg | ||
| jpeg-motion-photo | ||
| merging | ||
| mka | ||
| mkv | ||
| mp3 | ||
| mp4 | ||
| ogg | ||
| playlists | ||
| png | ||
| rtsp | ||
| silence | ||
| ts | ||
| vp9 | ||
| wav | ||
| webvtt | ||