question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When `Representation.height` is undefined, menu shows `undefinedp` and this plugin will not work.

See original GitHub issue

As in the README of videojs-contrib-quality-levels says, All properties are required except width and height. Ref: https://github.com/videojs/videojs-contrib-quality-levels#populating-the-list

So when Representation.height is undefined, selector menu shows only one undefinedp item. (which should be multiple items like 1080p / 720p / etc)

Representation {
  id: string,
  width: number,    // may be undefined
  height: number,    // may be undefined
  bitrate: number,
  enabled: function
}

Suggestion: when height is undefined, maybe use bitrate as key?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:1
  • Comments:8

github_iconTop GitHub Comments

2reactions
kylekirkbycommented, Aug 23, 2021

Reading the documentation on this, I was able to remove the audio only version of my m3u8 stream via:

let qualityLevels = player.qualityLevels();
qualityLevels.on('addqualitylevel', function (event) {
	let qualityLevel = event.qualityLevel;
	if (qualityLevel.height) {
		qualityLevel.enabled = true;
	} else {
		qualityLevels.removeQualityLevel(qualityLevel);
		qualityLevel.enabled = false;
	}
});

2reactions
scottmx81commented, Jan 7, 2020

@hemantachhami19 it happens if your m3u8 playlist file does not have the resolution defined in the #EXT-X-STREAM-INF lines. You need to change your encoding settings to add the resolution to those lines in the playlist.

Read more comments on GitHub >

github_iconTop Results From Across the Web

My height is defined but is shown as undefined - Stack Overflow
1 Answer 1 ... So when you call it like: asteroid('A1', 250, 40, 29.6, 29.3); // asteroid(id, x, y, img, width);. you are...
Read more >
When a license type is changed to "Undefined," what happens ...
When a license type is changed to "Undefined," what happens to records ... i.e "Editor Role not equal to "This specific Role" does...
Read more >
Cytoscape.js
js is an open-source graph theory (a.k.a. network) library written in JS. You can use Cytoscape.js for graph analysis and visualisation.
Read more >
Safari Technology Preview Release Notes - Apple Developer
Fixed the Share Menu when sharing an image to show a preview of the image and a ... Implemented no-quirks mode for media,...
Read more >
VS Code API | Visual Studio Code Extension API
Second, bind the command identifier to a title under which it will show in the ... Extensions are represented by an Extension-interface which...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found