V0.1.7 (#5)
* save url when connected and allow toggling connection on app start (#2) * mask ip in logs, reduce keep-alive logs frequency * update comment about debug link, migrate prefs to ktx * auto-connect for telemost * fix ice ipv6 resolving * auto-connect for vk * refactor hooks names * regenerate android resources * remove stale telemost dc * kick disconnected user from vk, refactor relay on mobile client, prevent double hook injection * refactor constants * set low importance for notification to avoid signals * stop vpn/relay at app destroy, reset state at vpn disconnect * prevent vk session close at video tunnel * kick disconnected user from vk, refactor relay on mobile client, prevent double hook injection * multiple tabs/calls, write android logs in file * update ux, fix fd lifecycle in tun2socks * increment release version --------- Co-authored-by: HukuToc2288 <hukutoc2288@yandex.ru> Co-authored-by: kulikov <user@Mac.lan>
This commit is contained in:
1 parent
e8da07179a
commit
84da73c324
52 files changed
+1510
-479
No files matched your search
@@ -29,8 +29,7 @@ type VP8DataTunnel struct {
|
||||
stopCh chan struct{}
|
||||
sendQueue chan []byte
|
||||
onData func([]byte)
|
||||
onClose func()
|
||||
throttle bool
|
||||
onClose func()
|
||||
}
|
||||
|
||||
func NewVP8DataTunnel(track *webrtc.TrackLocalStaticSample, logFn func(string, ...any)) *VP8DataTunnel {
|
||||
@@ -112,7 +111,7 @@ func (t *VP8DataTunnel) Start(fps int) {
|
||||
lastSend = time.Now()
|
||||
frame := t.buildFrame(nil)
|
||||
err := t.track.WriteSample(media.Sample{Data: frame, Duration: keepaliveInterval})
|
||||
if t.frameCount <= 3 || t.frameCount%250 == 0 {
|
||||
if t.frameCount <= 3 || t.frameCount%500 == 0 {
|
||||
t.logFn("vp8tunnel: KEEPALIVE frame=%d first=0x%02x err=%v", t.frameCount-1, frame[0], err)
|
||||
}
|
||||
}
|
||||
@@ -120,10 +119,6 @@ func (t *VP8DataTunnel) Start(fps int) {
|
||||
}()
|
||||
}
|
||||
|
||||
func (t *VP8DataTunnel) SetThrottle(on bool) {
|
||||
t.throttle = on
|
||||
}
|
||||
|
||||
func (t *VP8DataTunnel) Stop() {
|
||||
if t.running {
|
||||
close(t.stopCh)
|
||||
|
||||
Reference in new issue
Block a user