[jitsi-dev] [jitsi-commits] master: Adds the method focus.setRTCPTerminationStrategy() (9d24910)


#1

This lacks a }; at the end which raises a syntax error. Please test your source code before pushing!

На 15.07.2014 21:23, gp@jitsi.org написа:

···

Repository : ssh://lists.jitsi.org/jitsi-meet

On branch : master
Link : https://github.com/jitsi/jitsi-meet/compare/c32ad97c0a8bdc7057bf33de96eb0af6bef5764d...9d24910f82614692298519437773604c1233986f

---------------------------------------------------------------

commit 9d24910f82614692298519437773604c1233986f
Author: George Politis <george@george.jitsi.net>
Date: Thu Jul 3 16:35:47 2014 +0200

     Adds the method focus.setRTCPTerminationStrategy()

---------------------------------------------------------------

9d24910f82614692298519437773604c1233986f
  libs/colibri/colibri.focus.js | 24 ++++++++++++++++++++++++
  1 file changed, 24 insertions(+)

diff --git a/libs/colibri/colibri.focus.js b/libs/colibri/colibri.focus.js
index 6c53a29..169db05 100644
--- a/libs/colibri/colibri.focus.js
+++ b/libs/colibri/colibri.focus.js
@@ -1163,3 +1163,27 @@ ColibriFocus.prototype.sendTerminate = function (session, reason, text) {
          this.statsinterval = null;
      }
  };
+
+ColibriFocus.prototype.setRTCPTerminationStrategy = function (strategyFQN) {
+ var self = this;
+ var strategyIQ = $iq({to: this.bridgejid, type: 'set'});
+ strategyIQ.c('conference', {
+ xmlns: 'http://jitsi.org/protocol/colibri',
+ id: this.confid,
+ });
+
+ strategyIQ.c('rtcp-termination-strategy', {name: strategyFQN });
+
+ strategyIQ.c('content', {name: "video"});
+ strategyIQ.up(); // end of content
+
+ console.log('setting RTCP termination strategy', strategyFQN);
+ this.connection.sendIQ(strategyIQ,
+ function (res) {
+ console.log('got result');
+ },
+ function (err) {
+ console.error('got error', err);
+ }
+ );
+

_______________________________________________
commits mailing list
commits@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/commits


#2

Arg, I'm sorry :frowning:

···

On mer., juil. 16, 2014 at 01:09:19 +0300, Lyubomir Marinov wrote:

This lacks a }; at the end which raises a syntax error. Please test
your source code before pushing!

На 15.07.2014 21:23, gp@jitsi.org написа:

Repository : ssh://lists.jitsi.org/jitsi-meet

On branch : master
Link : https://github.com/jitsi/jitsi-meet/compare/c32ad97c0a8bdc7057bf33de96eb0af6bef5764d...9d24910f82614692298519437773604c1233986f

---------------------------------------------------------------

commit 9d24910f82614692298519437773604c1233986f
Author: George Politis <george@george.jitsi.net>
Date: Thu Jul 3 16:35:47 2014 +0200

    Adds the method focus.setRTCPTerminationStrategy()

---------------------------------------------------------------

9d24910f82614692298519437773604c1233986f
libs/colibri/colibri.focus.js | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)

diff --git a/libs/colibri/colibri.focus.js b/libs/colibri/colibri.focus.js
index 6c53a29..169db05 100644
--- a/libs/colibri/colibri.focus.js
+++ b/libs/colibri/colibri.focus.js
@@ -1163,3 +1163,27 @@ ColibriFocus.prototype.sendTerminate = function (session, reason, text) {
         this.statsinterval = null;
     }
};
+
+ColibriFocus.prototype.setRTCPTerminationStrategy = function (strategyFQN) {
+ var self = this;
+ var strategyIQ = $iq({to: this.bridgejid, type: 'set'});
+ strategyIQ.c('conference', {
+ xmlns: 'http://jitsi.org/protocol/colibri',
+ id: this.confid,
+ });
+
+ strategyIQ.c('rtcp-termination-strategy', {name: strategyFQN });
+
+ strategyIQ.c('content', {name: "video"});
+ strategyIQ.up(); // end of content
+
+ console.log('setting RTCP termination strategy', strategyFQN);
+ this.connection.sendIQ(strategyIQ,
+ function (res) {
+ console.log('got result');
+ },
+ function (err) {
+ console.error('got error', err);
+ }
+ );
+

_______________________________________________
commits mailing list
commits@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/commits

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev