gateslu

Results 7 comments of gateslu

> For arbitrary thread pool, you can bridge them with a channel, like > > ``` > let (tx, rx) = ::futures_channel::oneshot(); > thread::spawn(move || { > sleep(10); > tx.send(());...

> > ...使用C++版本的grpc是直接支持并发请求的.. > > @gateslu can you show me a C++ version that supports concurrency and works different than the rust version? > > The code is just an...

我也遇到了类似的问题,画面会开几秒,然后到下个画面又卡几秒,而我用rtsp请求相同media,则没有这个问题 ,通过wireshark抓包分析了一下rtp包,发现webrtc发送的payload是有问题的,无法通过正常的方法解析nal的类型 常规的解析nal类型方法: uint8_t nal_type = (rtp_payload[0] & kHevcTypeMask) >> 1; 这是正常能解析rtp包的rtsp抓包 ![image](https://user-images.githubusercontent.com/1697700/181687254-c59f00c9-5951-46d4-983d-fbd022a280b2.png) 这是无法正常解析rtp包的webrtc抓包,都是一些奇怪的数值 ![image](https://user-images.githubusercontent.com/1697700/181688299-600b9eba-5c15-4e73-bf2e-61fd278d2cab.png) ![image](https://user-images.githubusercontent.com/1697700/181688382-375845e0-3125-4e96-a780-393539b05204.png)

> 0x62的是vlc请求zlm的rtsp/h265的payload第一个字节 下面那些无规则的是请求zlm的webrtc/h265的payload第一个字节 不过我看了wiki,貌似有没提及webrtc支持h265,不知道是不是这个原因

> 浏览器已经改过了,是定制的chromium,已经支持请求265,但是收到的rtp包看着不对,无法按照正常的265解析方法解析nal type

> > 无法按照正常的 > > 怎么会不对,你不信可以rtsp播放试试 zlm中rtsp和webrtc是互通的 这个是我的问题,srtp搞错了,我再检查一下解码的代码吧,谢谢

> For people experiencing this problem, if you have SSH access to the mac in question, the `caffeinate` command can be used to wake the machine and allow RustDesk connectivity;...