Log in or register to post comments

iOS 13-beta Vuforia+SKVideoNode+AVPlayer shows black screen

August 28, 2019 - 6:51am #1

Hi, my app is a AR app, we use Vuforia to recognize image and use SceneKit to play video.

We created SKVideoNode by AVPlayer and set the SKVideoNode to SKScene, and then create SCNNode to involve this SKScene.

- Sample Code

========================

    AVPlayer *avPlayer = [self getMoviePlayer:path];

    SKVideoNode *videoNode = [[SKVideoNode alloc]initWithAVPlayer: avPlayer];

    CGSize videoSize = CGSizeMake(100, 50);

    videoNode.size = videoSize;

    videoNode.position = CGPointMake(50, 50);

    videoNode.yScale = -1.0;

    SKScene *skScene = [[SKScene alloc] initWithSize:videoSize];

    skScene.scaleMode = SKSceneScaleModeAspectFit;

    [skScene addChild:videoNode];

    SCNNode *planeNode = [[SCNNode alloc] init];

    planeNode.geometry =  [[SCNPlane alloc] init];

    SCNMaterial *material;

    material = [[SCNMaterial alloc] init];

    material.diffuse.contents = skScene;

    planeNode.geometry.firstMaterial = material;

========================

    we use this SCNNode to play videos.

it works fine until iOS12.4 but when I test it on iOS13-beta device, it shows black screen while sound is heard.

iOS 13-beta Vuforia+SKVideoNode+AVPlayer shows black screen

August 29, 2019 - 7:25am #3

Thank you very much for your quickly reply.

- beta version: ios 13 beta x?

The latest iOS 13.1 beta.

- is this reproducible with the vuforia core sample app?

I have tested the playback sample(older version) from Vuforia. it works fine.

Because we choose skvideonode and sceneKit to show video.

It is different with the playback sample from Vuforia.

 

And, now we are discussing to change solution to use playback sample from Vuforia,

- I find there is no video playback sample for native ios in latest vuforia sdk, could you tell me where I can find it?

- The playback sample is use metal to render? or it use OpenGL?

 

iOS 13-beta Vuforia+SKVideoNode+AVPlayer shows black screen

August 29, 2019 - 2:30am #2

Hi,

The good thing is that it is reproducible only on the beta version :). In our documentation we reference 11+ as supported version, however I believe we do not support beta versions due to stability and changes that can occur until the official release.

Could you please confirm the following:

- beta version: ios 13 beta x?

- is this reproducible with the vuforia core sample app?

Thank you.

Vuforia Engine Support

 

Log in or register to post comments