2
0
mirror of https://github.com/TeamNewPipe/NewPipeExtractor synced 2025-08-30 22:05:18 +00:00

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

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 {