Shuyu Guo
Shuyu Guo
说起来海康,我记得它的以前好像有过 rtp 包并不标准,服务需要 rtcp 保活,有些需要发送信令保活,类似于需要对链接作保活~不过好像有点久远了,好像是定时设置什么 option 去作
另外可以试试把 rtsp 转 rtmp 测试下,实在没想起来有什么
不是摄像头的 rtsp,普通 rtsp,我公司的 nvr 都是转到云 GB28181 协议之后远程······如果针对 rtsp ,你也可以看看 ZLMediaKit 或者 VLC
@ouzs 看起来是断流了,或者是包数据累计异常,另外 @Don0429 的缓冲,可能是因为找不到下一帧数据,所以“被迫”进入“缓冲”
Because I don't currently have a real Android 15 device, I only found this issue on the **Android 15 emulator**. The problem occurs in all videos, mainly related to the...
exoplayer 模式 ,然后自定义 source https://stackoverflow.com/questions/62565879/android-exoplayer-play-aes-encrypted-videos-locally
这个和你具体加密方式有关系,理论上 ExoPlayer 里是 AES-CBC-PKCS7Padding,也就是你需要了解 AES / CBC / PKCS7Padding 的概念,具体你要先知道你的加密是什么,然后才知道怎么解密,iv 是 初始化向量 ,一般是 0 ,看你加密是的设置
没加密你 return null
``` allprojects { repositories { ... maven { url 'https://jitpack.io' } } } ``` ``` implementation 'com.github.CarGuo:GSYIjkJava:1.0.0' //根据你的需求ijk模式的so implementation 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-arm64:v8.6.0-release-jitpack' implementation 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-armv7a:v8.6.0-release-jitpack' implementation 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-armv5:v8.6.0-release-jitpack' implementation 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-x86:v8.6.0-release-jitpack' implementation 'com.github.CarGuo.GSYVideoPlayer:gsyVideoPlayer-x64:v8.6.0-release-jitpack' ```
跨进程就是 Binder 和 AIDL ,也没什么其他选择了,或者你用个本地 socket 做转发,比如现在用的 proxy server ,就是一个独立的 service 代理转发流数据,并保存到本地