Last Updated on : 2023-05-25 06:23:54
startPreview
is called, video images do not appear, and error messages are not returned. How do I deal with this problem?camera
object is created.
cameraInitFailed:
callback.nil
is returned for the camera
object, check whether p2pType
is 1
.p2pType
is 1
, import TuyaSmartCameraT
. This module is no longer maintained. We recommend that you contact the manufacturer to update the IP camera (IPC) firmware.startPreivew
must be called after the callback cameraDidConnected:
is executed.We recommend that you contact the manufacturer to check whether the timestamps of audio frames match the timestamps of video frames.
playTime
must be startTime
or later, and be earlier than endTime
.- (void)destory
is called. How do I deal with this problem?For legacy versions, when p2pType
is 1
, the app might crash after the destory
method is called. This problem has been fixed in SDK v3.1.1 and later versions.
Before destory
is called, stop the preview or callback operation and call disConnect
to stop a P2P connection.
The simulator does not support the hardware decoding mechanism of certain IPCs. To fix this problem, use a real device for debugging instead.
This problem is caused by the conflict with the version of FFmpeg multimedia framework library. You package the existing video playback library into a dynamic library to fix the problem.
Terminated due to signal 13
is returned.main.m
:int main(int argc, char * argv[]) {
@autoreleasepool {
struct sigaction sa;
sa.sa_handler = SIG_IGN;
sigemptyset(&sa.sa_mask);
sa.sa_flags = 0;
if (sigaction(SIGPIPE, &sa, NULL) < 0) {
perror("cannot ignore SIGPIPE");
return -1;
}
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback