setMaxResolution method
Set the maximum resolution of the player. This method may not work on windows.
Implementation
bool setMaxResolution(Size resolution) {
if (!disposed &&
resolution.width >= 0 &&
resolution.height >= 0 &&
(resolution.width != maxResolution.value.width ||
resolution.height != maxResolution.value.height)) {
maxResolution.value = resolution;
if (id.value != null) {
_setMaxResolution();
}
return true;
}
return false;
}