Intel® Collaboration Suite for WebRTC
Community support and discussions on the Intel® Collaboration Suite for WebRTC (Intel® CS for WebRTC).
Announcements
Intel Customer Support will be observing the Martin Luther King holiday on Monday, Jan. 17, and will return on Tues. Jan. 18.
For the latest information on Intel’s response to the Log4j/Log4Shell vulnerability, please see Intel-SA-00646
1135 Discussions

Issue of an MCU conference with an RTSP input

Yang__Ping-Chih
Beginner
197 Views

Dear Team,

 

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:

" https://192.168.0.172:3004/?url=rtsp://184.72.239.149/vod/mp4:BigBuckBunny_175k.mov/ "

or

" https://192.168.0.172:3004/?url=rtsp://184.72.239.149/vod/mp4:BigBuckBunny_175k.mov "

 

However, the public rtsp url "rtsp://184.72.239.149/vod/mp4:BigBuckBunny_175k.mov" is working for VLC.

 

Logs below of browser console:

POST https://192.168.0.172:3004/?url=rtsp://184.72.239.149/vod/tokens/ 404   (rest-sample.js:15) 

 

Exception: 

message: "Unexpected token in JSON at position 0"

stack: "SyntaxError: Unexpected token in JSON at position 0

at JSON.parse (<anonymous>)

at https://192.168.0.172:3004/scripts/ics.js:9:41297

at new Promise (<anonymous>)

at n.ConferenceClient.join (https://192.168.0.172:3004/scripts/ics.js:9:41260)

at https://192.168.0.172:3004/scripts/index.js:76:24

at XMLHttpRequest.req.onreadystatechange (https://192.168.0.172:3004/scripts/rest-sample.js:8:13)"

 

Please help us in solving the above issue.

 

 

 

 

0 Kudos
4 Replies
Qiujiao_W_Intel
Employee
197 Views

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('\/?');

Yang__Ping-Chih
Beginner
197 Views

Hi, Qiujiao,  we change it to

let index = document.URL.lastIndexOf('\/?');

And, it doesn't show the external RTSP input, but shows the laptop camera's view instead.

Qiujiao_W_Intel
Employee
197 Views

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~

Yang__Ping-Chih
Beginner
197 Views

Hi Qiujiao,

We double check that the rtsp input(rtsp://184.72.239.149/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.

Reply