소스 검색

added method to extract logs

dev1
isymchych 9 년 전
부모
커밋
2282f50b62
3개의 변경된 파일1184개의 추가작업 그리고 809개의 파일을 삭제
  1. 21
    0
      JitsiConference.js
  2. 1150
    797
      lib-jitsi-meet.js
  3. 13
    12
      lib-jitsi-meet.min.js

+ 21
- 0
JitsiConference.js 파일 보기

@@ -696,6 +696,27 @@ JitsiConference.prototype.isStartVideoMuted = function () {
696 696
     return this.startVideoMuted;
697 697
 };
698 698
 
699
+/**
700
+ * Get object with internal logs.
701
+ */
702
+JitsiConference.prototype.getLogs = function () {
703
+    var data = this.xmpp.getJingleLog();
704
+
705
+    var metadata = {};
706
+    metadata.time = new Date();
707
+    metadata.url = window.location.href;
708
+    metadata.ua = navigator.userAgent;
709
+
710
+    var log = this.xmpp.getXmppLog();
711
+    if (log) {
712
+        metadata.xmpp = log;
713
+    }
714
+
715
+    data.metadata = metadata;
716
+
717
+    return data;
718
+};
719
+
699 720
 /**
700 721
  * Setups the listeners needed for the conference.
701 722
  * @param conference the conference

+ 1150
- 797
lib-jitsi-meet.js
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
파일 보기


+ 13
- 12
lib-jitsi-meet.min.js
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
파일 보기


Loading…
취소
저장