mobile CCTV,mobile surveillance,police body worn cameras

标题: 渲染事件 [打印本页]

author: alexanderjia    time: 2019-12-27 20:28
标题: 渲染事件
在程序第一次正常渲染后,直接杀死程序,重新进来就没有走case IRTSPCam.RTSP_EVENT_UPDATE_PARAM事件,导致没有渲染,但是有预览图片
author: alexanderjia    time: 2019-12-27 22:13
如果没有进case IRTSPCam.RTSP_EVENT_UPDATE_PARAM,可以在previewCb里设置render
author: xuwei    time: 2019-12-28 08:37
alexanderjia post on2019-12-27 22:13
如果没有进case IRTSPCam.RTSP_EVENT_UPDATE_PARAM,可以在previewCb里设置render

这样也可以
author: alexanderjia    time: 2019-12-28 15:31
现在的情况是render是打开了,但是没画面case IRTSPCam.RTSP_EVENT_UPDATE_PARAM这个没进?要怎么搞
author: xuwei    time: 2019-12-30 09:24
alexanderjia post on2019-12-28 15:31
现在的情况是render是打开了,但是没画面case IRTSPCam.RTSP_EVENT_UPDATE_PARAM这个没进?要怎么搞

RTSP_EVENT_UPDATE_PARAM和RTSP_EVENT_OPEN负载都是RTSPCam_StreamInfo,RTSP_EVENT_UPDATE_PARAM是用于通知调用者宽高有改变,当没有改变时,RTSP_EVENT_UPDATE_PARAM,就不会调用,宽高使用RTSP_EVENT_OPEN中回调的宽高即可
author: xuwei    time: 2019-12-30 09:26
alexanderjia post on2019-12-28 15:31
现在的情况是render是打开了,但是没画面case IRTSPCam.RTSP_EVENT_UPDATE_PARAM这个没进?要怎么搞

另外render打开和关闭需要成对调用,surfaceCreated中打开,surfaceDestroyed中关闭,否则会出现渲染异常




欢迎光临 mobile CCTV,mobile surveillance,police body worn cameras (http://bbs.besovideo.com:8067/) Powered by Discuz! X3.2