Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VideoJS warning and disabled variants when setting default bitrate #86

Open
DanBrownSyncbak opened this issue May 9, 2022 · 0 comments

Comments

@DanBrownSyncbak
Copy link

Description

I am trying to create a videowall of players and onready set all players to play their hls content at the lowest bitrate. When doing this I receive the following warning: Excessive main segment downloading detected. Switching to playlist 4-2489760/variant.m3u8?.
Upon receiving this warning certain playlist variants become locked out and not allowed to be switched to manually using the quality selector.

Below is the code used to set up the player and switch bitrate.

videojs("vidWallPlayer" + index, {
                            controls: true,
                            autoplay: true,
                            muted: true,
                        }, function onPlayerReady() {
                            const player = this;
                            
                            // Set the video src
                            player.src({
                                src: stream.Url,
                                type: "application/x-mpegURL",
                                cacheEncryptionKeys: true
                            })

                            player.hlsQualitySelector({
                                displayCurrentQuality: true
                            });

                            // player.maxQualitySelector({
                            //     'disableAuto': true, // Turn off the auto bitrate selection system
                            //     'defaultQuality': 1 // Make the video start playing at the lowest quality possible
                            // });

                            var qualityLevels = player.qualityLevels();
                            qualityLevels.on('change', function () {
                                let min = qualityLevels.levels_.reduce((min, l) => l.height < min ? l.height : min, qualityLevels.levels_[0].height);
                                player.hlsQualitySelector.setQuality(min)
                            });

                        });

Here is the full warning:

VIDEOJS: WARN: Problem encountered with playlist 5-851760/variant.m3u8?st=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwdWIiOiJ7XCJzc2lkXCI6XCIzOTIzNzI1MS04YjljLTQyNTUtYThhZS1hYjRmYmQ5OTA4NGJcIixcInNzc1wiOjE2NTIxMDU5NjEsXCJjaWRcIjpudWxsLFwibWlkXCI6MTU5ODMzLFwidWFoXCI6XCJNaUg5Nm4vQW85bVlqYjVmOVZ5L2NRPT1cIn0iLCJwcmkiOiJuaG0yMXhUR3loMVhVeGhIa1NKUjcxMEdpNFpuQUNoNVJ3RTJQQkN3R2dzVHpuMmN6enpBcXZ4MUVwNDNiOTZrLzFnRnNqZkFnMDlrWThPRnlpUU9LSGNWMndaYmFFTnNHSytWOTJJajVWdGlxNklreE9kVkJnUGlGakQ5Qnp3K0F1RDJVUzJ2NnhCN3VGbWdYem5tc1E9PSIsImlhdCI6MTY1MjEwNTk2MiwiZXhwIjoxNjUyNzA1OTYyfQ.GRsHfVpnOHnILutIkTGE29ZXL4LeOpEIBBLCAVxqsmo. Excessive main segment downloading detected. Switching to playlist 0-1553760/variant.m3u8?st=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwdWIiOiJ7XCJzc2lkXCI6XCIzOTIzNzI1MS04YjljLTQyNTUtYThhZS1hYjRmYmQ5OTA4NGJcIixcInNzc1wiOjE2NTIxMDU5NjEsXCJjaWRcIjpudWxsLFwibWlkXCI6MTU5ODMzLFwidWFoXCI6XCJNaUg5Nm4vQW85bVlqYjVmOVZ5L2NRPT1cIn0iLCJwcmkiOiJuaG0yMXhUR3loMVhVeGhIa1NKUjcxMEdpNFpuQUNoNVJ3RTJQQkN3R2dzVHpuMmN6enpBcXZ4MUVwNDNiOTZrLzFnRnNqZkFnMDlrWThPRnlpUU9LSGNWMndaYmFFTnNHSytWOTJJajVWdGlxNklreE9kVkJnUGlGakQ5Qnp3K0F1RDJVUzJ2NnhCN3VGbWdYem5tc1E9PSIsImlhdCI6MTY1MjEwNTk2MiwiZXhwIjoxNjUyNzA1OTYyfQ.GRsHfVpnOHnILutIkTGE29ZXL4LeOpEIBBLCAVxqsmo.

I would expect to see the lowest playlist variant playing but still have the ability to manually switch to all available variants in the future.

versions

videojs

https://unpkg.com/[email protected]/dist/video-js.css
https://unpkg.com/[email protected]/dist/video.js

plugins

https://cdnjs.cloudflare.com/ajax/libs/videojs-contrib-quality-levels/2.1.0/videojs-contrib-quality-levels.min.js
https://cdn.jsdelivr.net/npm/[email protected]/dist/videojs-hls-quality-selector.min.js

browsers

chrome

OSes

windows10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant