diff --git a/web/includes/Monitor.php b/web/includes/Monitor.php index 8aa7f4dc9..6b983018e 100644 --- a/web/includes/Monitor.php +++ b/web/includes/Monitor.php @@ -80,5 +80,17 @@ class Monitor { return( $streamSrc ); } // end function etStreamSrc + public function Width() { + if ( $this->Orientation() == '90' or $this->Orientation() == '270' ) { + return $this->{'Height'}; + } + return $this->{'Width'}; + } + public function Height() { + if ( $this->Orientation() == '90' or $this->Orientation() == '270' ) { + return $this->{'Width'}; + } + return $this->{'Height'}; + } } ?>