aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/static/js/av-merge.js
Commit message (Collapse)AuthorAgeFilesLines
* avmerge: Fix errors if close is called twiceJames Taylor2021-08-291-0/+4
| | | | | | | | | | | This can happen if the quality is changed from an avmerge source to an integrated source, and then changed back to an avmerge source Close is called the first change, but on the last change, it's called again because the avMerge object is still present, resulting in InvalidStateError Signed-off-by: Jesús <heckyel@hyperbola.info>
* avmerge: Remove obsolete shouldFetchNextSegment functionJames Taylor2021-08-291-9/+0
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* avmerge: Close streams to avoid errors while changing qualityJames Taylor2021-08-291-8/+39
| | | | | | | | | | | | | If a fetchRange network request finished after the quality was changed, there would be a "InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable" because appendSegment was trying to append to the sourceBuffer that was unusable after the video src was changed to a new mediaSource. Adds a close method to the AVMerge class to properly clean and close everything so these sorts of errors won't happen. Signed-off-by: Jesús <heckyel@hyperbola.info>
* avmerge: Buffer 50 mb ahead in videoJames Taylor2021-08-291-14/+43
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* Add video quality selectorJames Taylor2021-08-291-55/+58
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* Add support for more qualities, merging video+audio using MSEJames Taylor2021-08-291-0/+445
| | | | Signed-off-by: Jesús <heckyel@hyperbola.info>
* Revert "Add support for more qualities, merging video+audio using MSE"Jesús2021-08-291-445/+0
| | | | This reverts commit d56df02e7b1eba86baf511289208295b1f6c5a50.
* Add support for more qualities, merging video+audio using MSEJames Taylor2021-08-291-0/+445
Signed-off-by: Jesús <heckyel@hyperbola.info>