1
0
mirror of https://github.com/videojs/video.js.git synced 2024-11-24 08:42:25 +02:00

Update src/js/tech/middleware.js per feedback

Co-authored-by: Gary Katsevman <git@gkatsev.com>
This commit is contained in:
Essk 2023-01-23 14:26:42 +00:00 committed by GitHub
parent 538d663436
commit a13bbfcd2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,7 +92,7 @@ export function setSource(player, src, next) {
* @return {Tech~SourceObject}
* A source object.
*/
export function currentSource(src, middleware) {
export function currentSource(middleware, src) {
return middleware.reduceRight(middlewareIterator('currentSource'), src);
}