function handleUrl(url) {
                if (url.includes('youtube.com') || url.includes('youtu.be')) {
                    this.video = true;
                    return this.getYoutubeVideo(url);
                } else if (url.includes("vimeo")) {
                    this.video = true;
                    return this.getVimeoVideo(url);
                } else {
                    // Given url is not a video URL thus return it as it is.
                    this.video = false;
                    return url;
                }
            }
/**
             * Search for known video services URLs and return their players if recognized.
             * Unrecognized URLs are handled as images.
             * 
             * @param  {string} url
             * @return {string}
             */
Search for known video services URLs and return their players if recognized.
Unrecognized URLs are handled as images.

@param  {string} url
@return {string}
Search for known video services URLs and return their players if recognized . Unrecognized URLs are handled as images . @param { string } url @return { string }
function handleUrl(url) {
                if (url.includes('youtube.com') || url.includes('youtu.be')) {
                    this.video = true;
                    return this.getYoutubeVideo(url);
                } else if (url.includes("vimeo")) {
                    this.video = true;
                    return this.getVimeoVideo(url);
                } else {
                    this.video = false;
                    return url;
                }
            }
function handleUrl ( url ) { if ( url . includes ( 'youtube.com' ) || url . includes ( 'youtu.be' ) ) { this . video = true ; return this . getYoutubeVideo ( url ) ; } else if ( url . includes ( "vimeo" ) ) { this . video = true ; return this . getVimeoVideo ( url ) ; } else { this . video = false ; return url ; } }
Search for known video services URLs and return their players if recognized.
Search for known video services URLs and return their players if recognized .
// Given url is not a video URL thus return it as it is.