Problems in using unity3d to build easy movie texture [How to Solve]

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: