12
12

More than 5 years have passed since last update.

EasyMovieTextureのXCodeでのエラーをなおす

Last updated at Posted at 2015-08-20

まず、CustomVideoPlayer.mmとVideoPlayerPlugin.mmを
Build PhaseのCompile Sourcesで、「-fno-objc-arc」をつけてARCから除外。
次に、CustomVideoPlayer.mmを修正。

CustomVideoPlayer.mm
AVPlayerStatus status =[[change objectForKey:NSKeyValueChangeNewKey] integerValue];

CustomVideoPlayer.mm
AVPlayerStatus status = (AVPlayerStatus)[[change objectForKey:NSKeyValueChangeNewKey] integerValue];

にする。

CustomVideoPlayer.mm
 _lastFrameTimestamp = _curFrameTimestamp;
curTex = CMVideoSampling_SampleBuffer(&_videoSampling, _cmSampleBuffer, (int)_videoSize.width, (int)_videoSize.height);
CustomVideoPlayer.mm
 _lastFrameTimestamp = _curFrameTimestamp;
        size_t w, h;
        w =(int)_videoSize.width;
        h =(int)_videoSize.height;
        curTex = CMVideoSampling_SampleBuffer(&_videoSampling, _cmSampleBuffer, &w, &h);

にする。

12
12
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12
12