The MCU v.4.1 is working for conference sample at "https://192.168.0.172:3004".
But it just shows an error: 404, while connecting with an RTSP input at either:
However, the public rtsp url "rtsp://220.127.116.11/vod/mp4:BigBuckBunny_175k.mov" is working for VLC.
Logs below of browser console:
POST https://192.168.0.172:3004/?url=rtsp://18.104.22.168/vod/tokens/ 404 (rest-sample.js:15)
message: "Unexpected token in JSON at position 0"
stack: "SyntaxError: Unexpected token in JSON at position 0
at JSON.parse (<anonymous>)
at new Promise (<anonymous>)
at n.ConferenceClient.join (https://192.168.0.172:3004/scripts/ics.js:9:41260)
at XMLHttpRequest.req.onreadystatechange (https://192.168.0.172:3004/scripts/rest-sample.js:8:13)"
Please help us in solving the above issue.
Hi, Ping-Chih, this is a known issue in sample code, you can fix this issue by modifying generateUrl function in rest-sample.js file as follow:
let index = document.URL.lastIndexOf('\/'); should change to
let index = document.URL.lastIndexOf('\/?');
Please double check whether your rtsp input can play well in vlc player, if it plays well, do you see any error log in console or MCU log? we cannot reproduce this issue after modifying the code, please provide the console and MCU log if there is error message for us to debug, thanks~
We double check that the rtsp input(rtsp://22.214.171.124/vod/mp4:BigBuckBunny_175k.mov) plays well in vlc player.
There is hardly any error information available, so we take screen shots of the important information in sources and console log during debugging.
They are attached to this comment along with MCU logs. Please check them for us. Thank you.