def set_resolution(self, resolution_value):
    'Request a new resolution for the video stream.\n\n        :param resolution_value: The string of type `width`x`height` or a :py:class:`VideoResolution` object.\n        :type resolution_value: basestring|VideoResolution\n        :raises: :py:exc:`ValueError` if the resolution is unknown/unsupported.\n        '
    resolution = None
    if isinstance(resolution_value, VideoResolution):
        resolution = resolution_value
    elif isinstance(resolution_value, basestring):
        resolution = self._get_resolution_from_param_value(resolution_value)
    if (resolution is None):
        raise ValueError(('Unsupported resolution type specified: %r' % resolution_value))
    if ((self._resolution is None) or (resolution != self._resolution)):
        self._resolution = resolution
        self.video_params_changed = True
        self._width = resolution.get_resolution(self._use_square_pixels)[0]
        self._height = resolution.get_resolution(self._use_square_pixels)[1]
Request a new resolution for the video stream.

:param resolution_value: The string of type `width`x`height` or a :py:class:`VideoResolution` object.
:type resolution_value: basestring|VideoResolution
:raises: :py:exc:`ValueError` if the resolution is unknown/unsupported.
def set_resolution(self, resolution_value):
    'Request a new resolution for the video stream.\n\n        :param resolution_value: The string of type `width`x`height` or a :py:class:`VideoResolution` object.\n        :type resolution_value: basestring|VideoResolution\n        :raises: :py:exc:`ValueError` if the resolution is unknown/unsupported.\n        '
    resolution = None
    if isinstance(resolution_value, VideoResolution):
        resolution = resolution_value
    elif isinstance(resolution_value, basestring):
        resolution = self._get_resolution_from_param_value(resolution_value)
    if (resolution is None):
        raise ValueError(('Unsupported resolution type specified: %r' % resolution_value))
    if ((self._resolution is None) or (resolution != self._resolution)):
        self._resolution = resolution
        self.video_params_changed = True
        self._width = resolution.get_resolution(self._use_square_pixels)[0]
        self._height = resolution.get_resolution(self._use_square_pixels)[1]