After running, the first error reported needs to be changed to – fno objc arc
New errors after compilation.
Need to
CustomVideoPlayer.mm
_lastFrameTimestamp = _curFrameTimestamp;
curTex = CMVideoSampling_SampleBuffer(&_videoSampling, _cmSampleBuffer, (int)_videoSize.width, (int)_video
Change to
_lastFrameTimestamp = _curFrameTimestamp;
size_t w, h;
w =(int)_videoSize.width;
h =(int)_videoSize.height;
curTex = CMVideoSampling_SampleBuffer(&_videoSampling, _cmSampleBuffer, &w, &h);
There will be more
CustomVideoPlayer.mm
AVPlayerStatus status = [[change objectForKey:NSKeyValueChangeNewKey] integerValue];
Change to
AVPlayerStatus status = (AVPlayerStatus)[[change objectForKey:NSKeyValueChangeNewKey] integerValue];
Similar Posts:
- Ffmpeg scaling — the solution of “width / height not divisible by 2”
- [Solved] Undefined symbols for architecture armv7
- Next (react) framework combined with lib-flexible, postcss-pxtorem do pc-side rem adaptation to solve the font-size is always 54px issue
- [Solved] Linux zbar Compile error: /usr/include/x86_64-linux-gnu/bits/stdio2. h:143:1: error: expected identifie….
- [Solved] echart Error: Can’t get dom width or height
- Solutions to the channel problem of PIL PNG format
- How to Solve Datatable field value is empty Error
- [Solved] OBS Studio Use VLC video to play video error: Unhandled exception: c00000005
- A problem with 0 document. Documentelement. Clientwidth
- [Solved] OpenCV 4 (C++) Error: “error: ‘CV_FOURCC’ was not declared in this scope”