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

Help on example for Media Analytics Server.

Cast__Jorge
Beginner
433 Views

Hi.

I'm trying to run an example to see how Analytics Server works, but I can't find any. I was reading in this guide:

https://software.intel.com/en-us/articles/intel-collaboration-suite-for-webrtc-media-analytics-server-guide

there is an example in the package: CS_WebRTC_Media_Analytics_Server.v <Version> .tgz

called "sampleAnalyticsServer" but I can't find that package. Can someone show me the link to download the package or some example of how to use the analytics.

Thank you.

0 Kudos
3 Replies
Chandramouli_P
Beginner
433 Views

Hello Team,

Any update would be appreciated.

Thank you.

Best Regards,
Chandramouli.

0 Kudos
Saavedra__Jorge
Beginner
433 Views

I tried to adapt the conference example from the package "Intel_CS_WebRTC.v4.2.1.zip". Then I added some code to test analytics. Here is the code:

FILE: Release-v4.2.1/extras/basic_example/public/scripts/index.js
.......
startAnalyticTest(myRoom,stream,resolution.width,resolution.height);
.......

FILE: rest-sample.js
.......
var startAnalyticTest = function (room, stream, width, height, host) {
    var obj = {
        algorithm: 'dc51138a8284436f873418a21ba8cfa7',
        media: {
            audio: false,
            video: {
                from: stream  
                }
            }
        }
    send('POST', '/rooms/' + room + '/analytics/', obj, onResponse, host);
};
.......

FILE: samplertcservice.js
.......
app.post('/rooms/:roomId/analytics', function(req, res) {
  'use strict';
  var room = req.params.roomId;
  var algorithm = req.body.algorithm;
  var media = req.body.media;
  icsREST.API.startAnalytics(room, algorithm, media, function(info) {  
    res.send(info);
  }, function(err) {
    res.send(err);
  });
});
.......


I get the following error from the browser (Chrome version 75.0.3770.100 (Build official) (64 bits)):
POST http://127.0.0.1:3001/rooms/5d2f248a64326a0ed1446257/analytics/ 500 (Internal Server Error)

... and in the logs I get this:

FILE: "management-api.stdout"
....
2019-08-12 11: 13: 33.229 - DEBUG: AnalyticsResource - Add analytics for room 5d2f248a64326a0ed1446257
2019-08-12 11: 13: 33.238 - WARN: ManagementServer - {Error: Bad request
   name: 'Error',
   status: 400,
   code: 1201,
   data: {error: {code: 1201, message: 'Bad request'}}}

NOTE: All the conference functionalities in the example work correctly.
Some help here please,
Thank you.

0 Kudos
Qiujiao_W_Intel
Employee
433 Views

Hi,  document in https://software.intel.com/en-us/articles/intel-collaboration-suite-for-webrtc-media-analytics-server-guide is absolete, we will remove this document. The latest document for v4.2 is now included in Chapter 6 of conference server  document. And the latest analytics code is also included in conference server package, please check analytics folder in conference serve package.

0 Kudos
Reply