Intel® Collaboration Suite for WebRTC
Community support and discussions on the Intel® Collaboration Suite for WebRTC (Intel® CS for WebRTC).

Issue of an MCU conference with an RTSP input

Yang__Ping-Chih
Beginner
603 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
603 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('\/?');

0 Kudos
Yang__Ping-Chih
Beginner
603 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.

0 Kudos
Qiujiao_W_Intel
Employee
603 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~

0 Kudos
Yang__Ping-Chih
Beginner
603 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.

0 Kudos
Reply