【问题标题】:Why 360 degree video is not working with SKVideoNode on iPhone 5 but it is working fine on iPhone 4s, 5s, 6 and 6 plus?为什么 360 度视频不适用于 iPhone 5 上的 SKVideoNode,但它在 iPhone 4s、5s、6 和 6 plus 上运行良好?
【发布时间】:2017-03-25 18:10:55
【问题描述】:

我正在使用带有 SKVideoNode 的 360 视频播放器。 当我播放视频时,它在除 iphone 5 之外的所有设备上都可以正常工作。在 iphone 5 中,视频有黑屏,但音频正常。它也适用于 iphone 5 模拟器。我的 iPhone 5 是否存在任何特定于设备的问题?因为它在 4s 上运行良好。还是 360 度视频有问题?

【问题讨论】:

    标签: ios iphone-5 iphone-6 360-degrees skvideonode


    【解决方案1】:

    没有代码很难说问题出在哪里,所以我猜 -> 你在 SKVideoNode 中有一些 SCNView、SKVideoNode 和 AVPlayer,或者你直接从 SKVideo 节点播放,基本上由 AVPlayer 控制应该可以工作,但首先你必须设置通过属性 scene.playing = YES 播放的场景;

    如果你没有使用 AVPlayer,你可以使用 SKVideoNode 来播放视频

    scene.playing = YES;
    [videoNode play];
    

    这种方法也适用于装有 iOS 8 的 iPad mini、iPhone 5s ios 9 和装有 iOS 10 的 iPhone 7。

    问题是由于 SKVideoNode 中的一些内存泄漏,SKVideoNode 占用了 iPhone 5s 上的所有内存。我已经向 Apple 报告了错误并等待回复。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-08-15
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多