knziha

Results 163 comments of knziha

嘿嘿正在魔改中。 思路是一个activity startService+bindService, 然后关键是 PlayNotifyManager 等由 playService持有 ,依然是处理进程间通信。 还有一个关键就是show的时候 调用activity.startForeground(PLAY_NOTIFY_ID, notification); 其中activity其实是service。。

还有以一个关键应该是onpause的时候unbindService

svg 有 demo 吗?

via 是基于 https://github.com/wbayer/webview-gm

我的新作 —— 无限之书浏览器,通过深度优化 webviewgm,已经基本支持您的翻译脚本。[见知乎 log](https://www.zhihu.com/question/49436744/answer/3022260678)

https://wwtm.lanzoum.com/b0a6e796d 密码:gdbw 下载脚本比较慢,还需要优化一番 (我在酷安)

现在海阔、嗅觉、x浏览器等非内核修改的浏览器也支持沉浸翻译了,原理类似。(不过都没有我的完善,细处有坑,坑用户之坑~)

``` 2022-12-08 20:57:29.981 30542-1016/me.ag2s.tts I/fatal poison: 套接字:: TTS服务-失败中 onFailure null java.io.EOFExceptionjava.io.EOFException at okio.RealBufferedSource.require(RealBufferedSource.kt:199) at okio.RealBufferedSource.readByte(RealBufferedSource.kt:209) at okhttp3.internal.ws.WebSocketReader.readHeader(WebSocketReader.kt:119) at okhttp3.internal.ws.WebSocketReader.processNextFrame(WebSocketReader.kt:102) at okhttp3.internal.ws.RealWebSocket.loopReader(RealWebSocket.kt:293) at okhttp3.internal.ws.RealWebSocket$connect$1.onResponse(RealWebSocket.kt:195) at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:535) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at...

![image](https://user-images.githubusercontent.com/11593903/206691505-62e0b378-a4d1-4995-b191-751098edc743.png) 哈哈,偶是添柴 我也要发个魔法修改版出来,感谢原作大佬! 是叫 TTSPro 还是 TTSHub 好呢……