Unity video Ads stuck, DEBUG [T:0x74262000 M] -[UnityAdsVideoViewController videoPlaybackStalled]:334

Unity video Ads stuck, DEBUG [T:0x74262000 M] -[UnityAdsVideoViewController videoPlaybackStalled]:334

我正在尝试将 UnityVideo 广告集成到我用 SpriteKit 制作的 iOS 游戏中,看来集成成功了,我遵循了 http://unityads.unity3d.com/help/Documentation%20for%20Publishers/Integration-Guide-for-iOS

现在,当我尝试在我的设备上播放测试广告时,视频广告会播放 1-2 秒,然后永远卡在 "buffering" 状态

以下内容不断地打印在控制台中......

调试 [T:0x74262000 M] -[UnityAdsVideoPlayer _videoProgressMonitor:]:257 视频已移动:0.000000

调试 [T:0x74262000 M] -[UnityAdsVideoPlayer _videoProgressMonitor:]:259 视频停止!

调试 [T:0x74262000 M] -[UnityAdsVideoViewController videoPlaybackStalled]:334

我通过电子邮件收到了 Unity 的回复。它可能对你有帮助:

Usually the VIDEO STALLED message is caused by poor network connectivity. What this means is that your app does not have enough time after initializing the Unity Ads -system to cache ads and it tries to fall back to streaming mode.

There are a couple ways to solve this:

  1. You could allow more time to pass inside your app after initializing the ads before calling the first ad.
  2. We could disable ad streaming for your game. What this means is that it'll force the devices to cache the ads first. This of course means that it takes a little longer for the ads to become available.