Skip to content

WebUI invalidates RTSP url

Hi

ver 3.0.6 (309)

I found online that VLC for appleTV supports playing RTSP stream. However I can not send the rstp:// link on the web UI, because it invalidates as an incorrect URL.

the issue is with the playerControl.js on line 647

    /**
     * Check if a given string is a URL
     * Regex from https://gist.github.com/searls/1033143
     * @param {string} str
     * @returns {boolean}
     */
    function isURL(str) {
        var p = /\b((?:https?:\/\/|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/i;
        return p.test(str);
    }

The funny think is that if I hack the playerControl.js to accept any url, it plays the stream. Also If I put the url via the remote letter by letter it also works.

I could not find the playerControl.js in this repo. Could you please help me locate it so I can send a pull request?

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information