kurento-utils.js

145 views
Skip to first unread message

jonathan...@productionstmv.com

unread,
Jun 6, 2018, 5:59:36 PM6/6/18
to kurento
Hi, a couple of questions:

- is webrtc-adapter.js still required when using kurento-utils.js?  Is it taking the place of the adapter?

- it looks like it's more a convenience wrapper for simple usages.  Is that correct?  Is there a recommended library that is more comprehensive?  For example, besides using Apple as a source - which I understand is ongoing - it would be nice to preview video before connecting and switching between cameras without destroying the connection. which seems to be hidden behind the library's facade.

- speaking of which, any news on iOS?

Thanks! -j

Micael Gallego

unread,
Jun 6, 2018, 6:02:37 PM6/6/18
to kur...@googlegroups.com
Please find responses inline

On Wed, Jun 6, 2018 at 11:59 PM <jonathan...@productionstmv.com> wrote:
Hi, a couple of questions:

- is webrtc-adapter.js still required when using kurento-utils.js?  Is it taking the place of the adapter?

Yes. Kurento-utils needs adapter.js. 

- it looks like it's more a convenience wrapper for simple usages.  Is that correct? 

Yes. It is.
 
Is there a recommended library that is more comprehensive?  For example, besides using Apple as a source - which I understand is ongoing - it would be nice to preview video before connecting and switching between cameras without destroying the connection. which seems to be hidden behind the library's facade.

You can use WebRTC browser API directly. 

- speaking of which, any news on iOS?

We are still working on that. 

Thanks! -j

--
You received this message because you are subscribed to the Google Groups "kurento" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kurento+u...@googlegroups.com.
To post to this group, send email to kur...@googlegroups.com.
Visit this group at https://groups.google.com/group/kurento.
To view this discussion on the web visit https://groups.google.com/d/msgid/kurento/18193b64-1d1b-41f7-9b57-a6fe84635aab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

jonathan...@productionstmv.com

unread,
Jun 6, 2018, 6:07:43 PM6/6/18
to kurento
Thank you for the prompt answer and for kurento!  


On Wednesday, June 6, 2018 at 6:02:37 PM UTC-4, OpenVidu wrote:
Please find responses inline

On Wed, Jun 6, 2018 at 11:59 PM <jonathan...@productionstmv.com> wrote:
Hi, a couple of questions:

- is webrtc-adapter.js still required when using kurento-utils.js?  Is it taking the place of the adapter?

Yes. Kurento-utils needs adapter.js. 

Is there any reason to not always use the latest adapter?  (besides occasional bugs)

Micael Gallego

unread,
Jun 6, 2018, 6:14:48 PM6/6/18
to kur...@googlegroups.com
You can use the latest adapter.js version. Kurento-utils is not bundled with it to allow you to update it when you want.

In OpenVidu we have used the opposite approach. We embed adapter.js inside OpenVidu-browser lib to make easier to use OpenVidu. As always, there are trade offs... 

Best regards

Micael Gallego
Kurento / OpenVidu Project Lead


--
You received this message because you are subscribed to the Google Groups "kurento" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kurento+u...@googlegroups.com.
To post to this group, send email to kur...@googlegroups.com.
Visit this group at https://groups.google.com/group/kurento.

Paulo R. Lanzarin

unread,
Jun 6, 2018, 9:08:24 PM6/6/18
to kur...@googlegroups.com
it would be nice to preview video before connecting and switching between cameras without destroying the connection. which seems to be hidden behind the library's facade.

Be aware that kurento-utils exposes the peerConnection, so you are perfectly capable of manipulating the
WebRTC peerConnection and getting the stream tracks active in it. Getting a preview is as simple as fetching
the peerConnection from the WebRtcPeer object and attaching it to a video tag.

Switching cameras is a bit more complicated, though. You can simply use the native getUserMedia to fetch
a new webcam and replace the track in the peerConnection (pc.removeStream(stream), pc.addLocalStream(newStream),
but that'll require a renegotiation of the sender peer. And that implies recreating the WebRtcEndpoint in KMS because it doesn't support renegotiation. A utilitary
method for this could be added in simple manner to kurento-utils, but you'll have to handle the peer renegotiation properly
both in the browser and in KMS.

On Wed, Jun 6, 2018 at 7:14 PM, Micael Gallego <open...@gmail.com> wrote:
You can use the latest adapter.js version. Kurento-utils is not bundled with it to allow you to update it when you want.

In OpenVidu we have used the opposite approach. We embed adapter.js inside OpenVidu-browser lib to make easier to use OpenVidu. As always, there are trade offs... 

Best regards

Micael Gallego
Kurento / OpenVidu Project Lead

On Thu, Jun 7, 2018 at 12:07 AM <jonathan.longman@productionstmv.com> wrote:
Thank you for the prompt answer and for kurento!  

On Wednesday, June 6, 2018 at 6:02:37 PM UTC-4, OpenVidu wrote:
Please find responses inline

On Wed, Jun 6, 2018 at 11:59 PM <jonathan...@productionstmv.com> wrote:
Hi, a couple of questions:

- is webrtc-adapter.js still required when using kurento-utils.js?  Is it taking the place of the adapter?

Yes. Kurento-utils needs adapter.js. 

Is there any reason to not always use the latest adapter?  (besides occasional bugs)

--
You received this message because you are subscribed to the Google Groups "kurento" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kurento+unsubscribe@googlegroups.com.

To post to this group, send email to kur...@googlegroups.com.
Visit this group at https://groups.google.com/group/kurento.
To view this discussion on the web visit https://groups.google.com/d/msgid/kurento/54d5600a-865d-401f-843f-ee893972d1bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "kurento" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kurento+unsubscribe@googlegroups.com.

To post to this group, send email to kur...@googlegroups.com.
Visit this group at https://groups.google.com/group/kurento.
Reply all
Reply to author
Forward
0 new messages