Merge pull request #1236 from Thompson3142/fix_scrubbing_seekbar_preview_crash

Add documentation for faulty framesets
This commit is contained in:
Tobi 2024-10-27 14:42:06 +01:00 committed by GitHub
commit c343e31ed2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 14 additions and 0 deletions

View File

@ -1377,6 +1377,20 @@ public class YoutubeStreamExtractor extends StreamExtractor {
return itagInfo;
}
/**
* {@inheritDoc}
* Should return a list of Frameset object that contains preview of stream frames
*
* <p><b>Warning:</b> When using this method be aware
* that the YouTube API very rarely returns framesets,
* that are slightly too small e.g. framesPerPageX = 5, frameWidth = 160, but the url contains
* a storyboard that is only 795 pixels wide (5*160 > 795). You will need to handle this
* "manually" to avoid errors.</p>
*
* @see <a href="https://github.com/TeamNewPipe/NewPipe/pull/11596">
* TeamNewPipe/NewPipe#11596</a>
*/
@Nonnull
@Override
public List<Frameset> getFrames() throws ExtractionException {