videojs / http-streaming

HLS, DASH, and future HTTP streaming protocols library for video.js
https://videojs-http-streaming.netlify.app/
Other
2.45k stars 419 forks source link

How to properly create qualityLevels from sources? #1391

Closed mateusz-wyka closed 1 year ago

mateusz-wyka commented 1 year ago

Description

I have sources:

const sources = [
  {
    src: assets(hdVideo),
    type: "video/mp4",
    label: "1080p"
  },
  {
    src: assets(sdVideo),
    type: "video/mp4",
    label: "480p"
    }
];

How to properly create qualityLevels from these sources?

welcome[bot] commented 1 year ago

👋 Thanks for opening your first issue here! 👋

If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. To help make it easier for us to investigate your issue, please follow the contributing guidelines.

mister-ben commented 1 year ago

This won't work. If you want ABR you need to use HLS rather than spearate MP4 sources.