Open Colaman0 opened 1 year ago
because when you call startpreview,you will call Camera1Base.startPreview, then,call the Camera1ApiManager.start, last ,get the camera yuv data.
it will call Camera1ApiManager.start event I didn't call startPreview. I found the problem is VideoEncode didn't accept the formatChanged ,so the spa and pps is null
i don't knwo that,I'm also studying the source code. can you help me solve #88 problem?
I found that if you didn't call startPreview before startStream,the RtspServer will fail to open。 because startPreview will init the camera config ,it will select the camera facing , then startStream will open camera,so that it will open the camera 0 and my device didn't have it ,so I can't get the camera frame data. RtspServer will check the ssp and data , and both two data come from the frame data , so the RtspServer can't open .
When i don't pass the surfaceview of textureview to build the RtspServerCamera1 or don't call the rtspServerCamera1.startPreview() , RtspServer will return the sps or pps is null error. Just hide the rtspServerCamera1.startPreview() in sample