diff --git a/examples/demos/mediaplayer/MediaPlayer/UrlPopup.qml b/examples/demos/mediaplayer/MediaPlayer/UrlPopup.qml index 49348a17..7cbfc034 100644 --- a/examples/demos/mediaplayer/MediaPlayer/UrlPopup.qml +++ b/examples/demos/mediaplayer/MediaPlayer/UrlPopup.qml @@ -29,7 +29,7 @@ Popup { urlPopup.close() } - function validateUrl(urlText: string) { + function validateUrl(urlText: string) : bool { const urlPattern = /^((http)|(https)|(rtp)|(rtsp)|(udp)):\/\// return urlPattern.test(urlText) }