public function size($size)
    {
        if (!$this->isValidSize($size)) {
            throw new AudioPlayerException('Invalid Size');
        }
        $this->size = $size;

        // Progress Bar & Time Code can not be used with Tiny/Invisible
        // Any other size (Small, Medium, Large) MUST have a Progress Bar
        if ($size == static::SIZE_TINY || $size == static::SIZE_INVISIBLE) {
            $this->progressBar(false)->timeCode(false);
        } else {
            $this->progressBar();
        }

        return $this;
    }
public function size($size)
    {
        if (!$this->isValidSize($size)) {
            throw new AudioPlayerException('Invalid Size');
        }
        $this->size = $size;

        // Progress Bar & Time Code can not be used with Tiny/Invisible
        // Any other size (Small, Medium, Large) MUST have a Progress Bar
        if ($size == static::SIZE_TINY || $size == static::SIZE_INVISIBLE) {
            $this->progressBar(false)->timeCode(false);
        } else {
            $this->progressBar();
        }

        return $this;
    }
public function size ( $ size ) { if ( ! $ this -> isValidSize ( $ size ) ) { throw new AudioPlayerException ( 'Invalid Size' ) ; } $ this -> size = $ size ; // Progress Bar & Time Code can not be used with Tiny/Invisible // Any other size (Small, Medium, Large) MUST have a Progress Bar if ( $ size == static :: SIZE_TINY || $ size == static :: SIZE_INVISIBLE ) { $ this -> progressBar ( false ) -> timeCode ( false ) ; } else { $ this -> progressBar ( ) ; } return $ this ; }
Set Player Size.


@param int $size [SIZE_INVISIBLE | SIZE_TINY | SIZE_SMALL | SIZE_MEDIUM | SIZE_LARGE]

@throws AudioPlayerException

@return $this
Set Player Size .