sprite kit - SKVideoNode plays transparent video sometimes, but not always -


we have skvideonode we're adding skscene in spritekit game, , mp4 video plays fine maybe 90% of time, 10% of time renders transparent video audio playing fine.

what mean transparent, video sits overtop of our game board, , when glitches out, game can seen in plain sight below, though nothing responsive because video node positioned on top of blocking user interaction. audio video still plays fine know trying play.

its totally inconsistent. video plays fine part, seems 10% of time, doesn't render video content node, audio.

we seeing in versions of ios.

our node code:

nsurl *fileurl = [nsurl fileurlwithpath:[[nsbundle mainbundle] pathforresource:@"intro" oftype:@"mp4"]]; avplayer* player = [avplayer playerwithurl:fileurl];  skvideonode* introvideonode = [[skvideonode alloc] initwithavplayer:player]; introvideonode.size = cgsizemake(self.frame.size.width,self.frame.size.height); introvideonode.position = cgpointmake(cgrectgetmidx(self.frame), cgrectgetmidy(self.frame)); introvideonode.name = @"introvideo"; // video plays on top of many other skspritenodes introvideonode.zposition = 8000; [self addchild:introvideonode]; [introvideonode play]; 

thoughts?


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -