IntelliJ using replace (Ctrl+R) with regexp

Task:

have several code lines which “gitter” need to be replaced with actual function name called

log.debug("gitter: {}", inboudStats.getJitter());
log.debug("gitter: {}", inboudStats.getFractionLost());
log.debug("gitter: {}", inboudStats.getBytesReceived());

Solution:

Search: (gitter)(:\s\{\}”,\s(in|out)bou[nd]*Stats.get(.*)\(\))

Replace: $3$2

When intelliJ finds searching string, it gives replace string as well as matching string high lighted.

replacewith-regexp

Ref:


 

kurento monitoring java

Have a Kurento Room Application developed for company and looking for a way to monitor each call quality as well as monitor KMS components. Found very good example of kms monitoring java project. The project shows how to see media stream on a Kurento Application server developed with java.

Reference Link

 

WebRTC Main Links

  • https://webrtc.org/
  • https://developer.mozilla.org/en-US/docs/Web/API/WebRTC_API

 

Javascript Object String

References

Coding Advice

# Note that JavaScript distinguishes between String objects and primitive string values. (The same is true of Boolean and Numbers.)

String literals (denoted by double or single quotes) and strings returned from String calls in a non-constructor context (i.e., without using the new keyword) are primitive strings. JavaScript automatically converts primitives to String objects, so that it’s possible to use String object methods for primitive strings. In contexts where a method is to be invoked on a primitive string or a property lookup occurs, JavaScript will automatically wrap the string primitive and call the method or perform the property lookup.

var s_prim = 'foo';
var s_obj = new String(s_prim);

console.log(typeof s_prim); // Logs "string"
console.log(typeof s_obj);  // Logs "object"

Kurento Audio Quality during Call / Recorded

WebRTC Call quality is decided by SDP

Anatomy of a WebRTC SDP

Status on javascript.

 

Kurento records a call into .webm format

what is webm? WebM is defined as a video and audio container format to provide high quality, royalty-free, open video compression for use with HTML5 video. The WebM container is based on a profile of Matroska. WebM initially supported VP8 video and Vorbis audio streams. In 2013 it was updated to accommodate VP9 video and Opus audio.

 

 

Reference