v0.2.1 (#53)
* ios proxy app, tune vp8 tunnel * refactor go modules, move headless joiner android to a go captcha * restore emojis in vk bot keyboard * headless support in vk bot * remove telemost dc hooks, update cretor-app ui and bot * remove telemost support from go code, add fallback to video if mode == dc in joiners * fix headless creators in windows * update vk call creation autoclick * force desktop useragent for creator app * kick disconnected user in headless vk creator immediately when connection is lost * update README.md * update SETUP.md * update release version * add fallback for link creation in vk bot
This commit is contained in:
1 parent
9e1f2a98d9
commit
1b2d6bc5d3
89 files changed
+3503
-2158
No files matched your search
@@ -0,0 +1,45 @@
|
||||
package android
|
||||
|
||||
import (
|
||||
"log"
|
||||
"strings"
|
||||
|
||||
"whitelist-bypass/relay/common"
|
||||
"whitelist-bypass/relay/pion"
|
||||
joiner "whitelist-bypass/relay/pion/headless-joiner-common"
|
||||
"whitelist-bypass/relay/tunnel"
|
||||
)
|
||||
|
||||
type TelemostHeadlessJoiner struct {
|
||||
inner *joiner.TelemostHeadlessJoiner
|
||||
OnConnected func(tunnel.DataTunnel)
|
||||
}
|
||||
|
||||
func NewTelemostHeadlessJoiner(logFn func(string, ...any)) *TelemostHeadlessJoiner {
|
||||
if logFn == nil {
|
||||
logFn = log.Printf
|
||||
}
|
||||
inner := joiner.NewTelemostHeadlessJoiner(logFn, RequestResolve, StatusEmitter{}, PCConfigurer{}, pion.AddTunnelTracks, pion.ReadTrack)
|
||||
wrapper := &TelemostHeadlessJoiner{inner: inner}
|
||||
inner.OnConnected = func(tun tunnel.DataTunnel) {
|
||||
if wrapper.OnConnected != nil {
|
||||
wrapper.OnConnected(tun)
|
||||
}
|
||||
}
|
||||
return wrapper
|
||||
}
|
||||
|
||||
func (j *TelemostHeadlessJoiner) Run() {
|
||||
j.inner.Status.EmitStatus(common.StatusReady)
|
||||
for {
|
||||
line, err := ReadStdinLine()
|
||||
if err != nil {
|
||||
log.Printf("telemost-joiner: stdin closed: %v", err)
|
||||
return
|
||||
}
|
||||
if strings.HasPrefix(line, "JOIN:") {
|
||||
j.inner.RunWithParams(strings.TrimPrefix(line, "JOIN:"))
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user