You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to know if there is a way to automatically change the video resolution according to the bandwidth? Kind of like on Youtube with the "auto" resolution?
The text was updated successfully, but these errors were encountered:
at least in chrome, you don't need HLS. you can use the NetworkConnection framework.
We also use this:
connection = navigator.connection || navigator.mozConnection || navigator.webkitConnection;
connectionType = connection.effectiveType
downlinkMax = navigator.connection.downlinkMax || navigator.connection.downlink
dataSaving = navigator.connection.saveData || false
if (dataSaving) return 'low'
if(not downlinkMax) return 'low'
// now distinguish your resolution based on your video profiles and the downlinkMax (in Mbps)
I would like to know if there is a way to automatically change the video resolution according to the bandwidth? Kind of like on Youtube with the "auto" resolution?
The text was updated successfully, but these errors were encountered: