html5_rtsp_player
html5_rtsp_player copied to clipboard
how to read the password of an rtsp link that contains '@' with streamedian?
Add code like below to "setPlayerSource" function in the "index.html" file to get username and password.
function setPlayerSource(newSource) { let result = newSource.match(/rtsp://(.*)@/); let credentials = result[1].split(':'); let password = credentials[0]; let user = credentials[1];
...
}