title: AVPlayerLayer as SCNMaterial not rendered, audio playing fine
body: <p>i'm trying to use a AVPlayerLayer as a SCNMaterial to be assigned to a SCNSphere.</p>
  
  <p>Based on: 
  <a href="https://developer.apple.com/library/mac/samplecode/SceneKit_Slides_WWDC2013/Listings/Scene_Kit_Session_WWDC_2013_Sources_Slides_ASCSlideMaterialLayer_m.html" rel="nofollow noreferrer">https://developer.apple.com/library/mac/samplecode/SceneKit_Slides_WWDC2013/Listings/Scene_Kit_Session_WWDC_2013_Sources_Slides_ASCSlideMaterialLayer_m.html</a></p>
  
  <p>I create a player, create a player layer and have tried with and without a backgroundLayer to assign as material for my SCNSphere</p>
  
  <p>Issue is, I get the same result reported here:
  <a href="https://stackoverflow.com/questions/26153285/scnmaterialproperty-not-rendering-layer">SCNMaterialProperty not rendering layer</a></p>
  
  <p>Audio plays, video not rendered at all!</p>
  
  <p>The bit of code is quite simple:</p>
  
  <pre><code>    // video player
      let path = NSBundle.mainBundle().pathForResource("tb", ofType: "mp4")
      let url  = NSURL(fileURLWithPath: path!)
      let player = AVPlayer(URL: url)             // AVPlayer
      player.actionAtItemEnd = .None
      player.play()
  
      let frame = CGRectMake(0, 0, 300, 300)
  
      let playerLayer = AVPlayerLayer()
      playerLayer.videoGravity = AVLayerVideoGravityResizeAspectFill
      playerLayer.frame = frame
      playerLayer.player = player
  
  
      sceneMaterial = SCNMaterial()
      sceneMaterial.specular.contents = UIColor.whiteColor()
      sceneMaterial.shininess = 0.5
      sceneMaterial.diffuse.contents = playerLayer
      sphere.materials = [sceneMaterial]
  </code></pre>
  
  <p>As mentioned, whether I use a backgroundLayer : CALayer and add the playerLayer as a sublayer gives the same result.</p>
  
  <p>Any help is appreciated</p>