美文网首页
Xcode中使用unity3D生成项目(Easy Movie T

Xcode中使用unity3D生成项目(Easy Movie T

作者: 欲速则不达 | 来源:发表于2016-11-08 15:16 被阅读72次

    运行后,首先报的错需要改 -fno-objc-arc
    编译后出现的新的错。

    需要将
    CustomVideoPlayer.mm
    _lastFrameTimestamp = _curFrameTimestamp;
    curTex = CMVideoSampling_SampleBuffer(&_videoSampling, _cmSampleBuffer, (int)_videoSize.width, (int)_video
    改成
    _lastFrameTimestamp = _curFrameTimestamp;
    size_t w, h;
    w =(int)_videoSize.width;
    h =(int)_videoSize.height;
    curTex = CMVideoSampling_SampleBuffer(&_videoSampling, _cmSampleBuffer, &w, &h);

    还有将
    CustomVideoPlayer.mm中的
    AVPlayerStatus status = [[change objectForKey:NSKeyValueChangeNewKey] integerValue];
    改成
    AVPlayerStatus status = (AVPlayerStatus)[[change objectForKey:NSKeyValueChangeNewKey] integerValue];

    相关文章

      网友评论

          本文标题:Xcode中使用unity3D生成项目(Easy Movie T

          本文链接:https://www.haomeiwen.com/subject/dxwauttx.html