Setup mVideoStream and mVideoStreamId and set it in packet.

This commit is contained in:
Isaac Connor 2021-02-04 10:27:56 -05:00
parent c61e6a8c56
commit ac42aa2488
1 changed files with 2 additions and 0 deletions

View File

@ -1047,6 +1047,7 @@ int RemoteCameraHttp::PrimeCapture() {
mode = SINGLE_IMAGE;
buffer.clear();
}
get_VideoStream();
return 1;
}
@ -1088,6 +1089,7 @@ int RemoteCameraHttp::Capture(ZMPacket &packet) {
Image *image = packet.image;
packet.keyframe = 1;
packet.codec_type = AVMEDIA_TYPE_VIDEO;
packet.packet.stream_index = mVideoStreamId;
switch ( format ) {
case JPEG :