- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Tags:
- HTML5
- JavaScript*
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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('\/?');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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~
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
![](/skins/images/C4F7392A5C68ACA60290C9576F107044/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page