Skip to content

Remove XHR API and only use the Fetch API #4254

@dsilhavy

Description

@dsilhavy

Description

We are currently using two APIs to download manifests, segments, and subtitle files. The XHR API is used for non low-latency streaming and to fetch the manifest and external subtitle files. We only use the Fetch API for low latency streaming with chunked transfer encoding.

As the Fetch API is supported in all major browsers for some time now we should consider removing XHR completely. If older platforms like SmartTVs or Set Top Boxes do not support the Fetch API we can add the option to include a polyfill.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions