ringcentral-softphone 1.3.1 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -33,10 +33,11 @@ class Streamer extends node_events_1.default {
|
|
|
33
33
|
this.sendPacket();
|
|
34
34
|
}
|
|
35
35
|
get finished() {
|
|
36
|
-
return this.
|
|
36
|
+
return this.callSession.disposed ||
|
|
37
|
+
this.buffer.length < this.callSession.softphone.codec.packetSize;
|
|
37
38
|
}
|
|
38
39
|
sendPacket() {
|
|
39
|
-
if (!this.
|
|
40
|
+
if (!this.paused && !this.finished) {
|
|
40
41
|
const temp = this.callSession.encoder.encode(this.buffer.subarray(0, this.callSession.softphone.codec.packetSize));
|
|
41
42
|
const rtpPacket = new werift_rtp_1.RtpPacket(new werift_rtp_1.RtpHeader({
|
|
42
43
|
version: 2,
|
|
@@ -28,10 +28,11 @@ class Streamer extends EventEmitter {
|
|
|
28
28
|
this.sendPacket();
|
|
29
29
|
}
|
|
30
30
|
get finished() {
|
|
31
|
-
return this.
|
|
31
|
+
return this.callSession.disposed ||
|
|
32
|
+
this.buffer.length < this.callSession.softphone.codec.packetSize;
|
|
32
33
|
}
|
|
33
34
|
sendPacket() {
|
|
34
|
-
if (!this.
|
|
35
|
+
if (!this.paused && !this.finished) {
|
|
35
36
|
const temp = this.callSession.encoder.encode(this.buffer.subarray(0, this.callSession.softphone.codec.packetSize));
|
|
36
37
|
const rtpPacket = new RtpPacket(new RtpHeader({
|
|
37
38
|
version: 2,
|