[Fiware-creatifi-coaching] [CreatiFI] Kurento support needed from CreatiFI FIWARE Accelerator program winner

Andrea Maestrini amaestrini at create-net.org
Thu Feb 26 14:00:09 CET 2015


Dear FIWARE coach,
as you suggested we collect more info from the CreatiFI winner (moreover
they attached configuration files) and we forward you the support request,
we
are not able to solve.
Please let us know if you need direct contact with the submitter.
Thanks.

**************************************************************

We are trying to develop an application with Kurento GE as part of CREATIFI
project.
The application is quite simple for now, but we are facing some technical
issues.

The application uses SignalMaster as signaling server, and Kurento for
mediating the video communication.
We started with a peer webrtc mini-prototype, and now we are integrating
Kurento …

Our environment is:
Linux Ubuntu 14.10
SignalMaster https://github.com/andyet/signalmaster
Kurento Media Server (5.1.0)
Kurento Client Nodejs 5.1.0

The code I have so far does …

- allows two clients to register to a ‘room’
- when the second enters the room, SDP offers are exchanged (using signal
master functionalities)
- then I try to integrate Kurento in the process to have the media exchange
handled by Kurento but unfortunately, the whole process does not fulfill
because even in a loopback case (clients and servers all running in same
machine)I cannot see the videostream to appear.

In attachment you find the code excerpts.
I think in this stage of the project it would be great for us to get your
inputs.

A second design problem which is not clear to us - but we are not yet there
- is the role / configuration of STUN / TURN servers.
In the peer webrtc mini-prototype we figured out the architecture, but we
do not understand how this has to change using Kurento.

Can you help and help us go in the right direction ?

best regards

**************************************************************



On Wed, Feb 18, 2015 at 1:45 PM, Andrea Maestrini <amaestrini at create-net.org
> wrote:

> Dear FIWARE coach,
> we forward you a support request received from a CreatiFI Call1 winner, we
> are not able to solve.
> Please let us know if you need direct contact with the submitter.
> Thanks.
>
> ****************************************************************
> General Support #65: Kurento support needed
> <http://techsupport.creatifi.eu/issues/65>
>
>    - Author: Stefano Scotton
>    - Status: New
>    - Priority: High
>    - Assignee: Trento Tech Support (Italy&Belgium)
>    - Category: Trento Hub (Italy)
>    - Support Type: FIWARE Generic Enablers
>
> Hi all,
> we are experiencing the features of Kurento GE but we have trouble
> understanding the documentation aspects of application integration.
> We need the availability of support for discussing of some architectural
> aspects of Kurento GE.
>
> can you provide us a technical reference to talk to these issues?
>
> Thank You
>
> Stefano
>
> ****************************************************************
>



-- 

====================================================================

*Andrea Maestrini, ing.*

CREATE-NET

FraME, Future Media Solutions Area

Research Engineer

Via alla Cascata 56C – 38123 Povo, Trento - Italy

e-mail: andrea.maestrini at create-net.org

Phone: (+39) 0461 312424

Mobile: (+39) 3473390671

Fax: (+39) 0461 421157

www.create-net.org

====================================================================

The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited according to the
Italian Law 196/2003 of the Legislature. If you received this in error,
please contact the sender and delete the material from any computer.

===========================================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fiware.org/private/fiware-creatifi-coaching/attachments/20150226/0709413c/attachment.html>
-------------- next part --------------

// ...

// kurento-client module was included
// kurento client was initialised
// CallMediaPipeline is defined as in the Kurento tutorials

// ...
    
client.on('message', function(message) {
    
    if (!message) {
        return ;
    }
    
    var other = io.sockets.sockets[message.to];
        
        if (!other) {
            return ;
        }
        
        if (message.type === 'offer') {
            
	     // the caller (second user joining the room) sends an offer to the callee (first user joining the room)
	    
            offers[client.id] = message.payload.sdp;
            
            message.from = client.id;
            other.emit('message', message);
            
        } else if (message.type === 'answer') {
            
	    // the callee (first user joining the room) sends back an answer, but this is intercepted to create the Kurento pipeline
	    
            var pipeline = new CallMediaPipeline();
            
            pipeline.createPipeline(function(error) {
                
                if (error) {
                    console.error(error);
                    return ;
                }
                
                var offer = offers[message.to];
                
                pipeline.generateSdpAnswerForCaller(offer, function(error, callerSdpAnswer) {
                    
                    if (error) {
                        console.error(error);
                        return ;
                    }
                    
                    pipeline.generateSdpAnswerForCallee(message.payload.sdp, function(error, calleeSdpAnswer) {
                        
                        if (error) {
                            console.error(error);
                            return ;
                        }
                        
                        var answer = {
                            'to': message.to,
                            'sid': message.sid,
                            'roomType': message.roomType,
                            'type': 'offer',
                            'payload': {
                                'type': 'offer',
                                'sdp': callerSdpAnswer
                            },
                            'prefix': message.prefix,
                            'from': client.id
                        };
                        
                        other.emit('message', answer);
                        
                        answer = {
                            'to': client.id,
                            'sid': message.sid,
                            'roomType': message.roomType,
                            'type': 'answer',
                            'payload': {
                                'type': 'answer',
                                'sdp': calleeSdpAnswer
                            },
                            'prefix': message.prefix,
                            'from': message.to
                        };
                        
                        client.emit('message', answer);
                        
                    });
                    
                });
                
            });
            
        } else {
            
            message.from = client.id;
            other.emit('message', message);
            
        }
        
    });
    
// ...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kurento.conf.json
Type: application/json
Size: 2185 bytes
Desc: not available
URL: <https://lists.fiware.org/private/fiware-creatifi-coaching/attachments/20150226/0709413c/attachment.json>


More information about the Fiware-creatifi-coaching mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy