title: Hide presentMediaPlayerController Swift 3 WatchKit
body: <p>Is there any way to hide the media player or display it on a sublayer where it won't be seen? I can play sounds directly from the watch, but the media player looks bad when its a sound effect.    </p>
  
  <pre><code>func playSound(name: String, time: Double){
           let assetURL: URL = Bundle.main.url(forResource: name, withExtension: "wav")!
          let options: [AnyHashable: Any] = [WKMediaPlayerControllerOptionsAutoplayKey: true]
          self.presentMediaPlayerController(with: assetURL, options: options, completion: {(_ didPlayToEnd: Bool, _ endTime: TimeInterval, _ error: Error?) -&gt; Void in
              if error != nil {
                  print("Error: \(error)")
              }
          })
          DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + Double(Int64(time * Double(NSEC_PER_SEC))) / Double(NSEC_PER_SEC), execute: {() -&gt; Void in
              self.dismissMediaPlayerController()
          })
      }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/lQlEC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lQlEC.png" alt="enter image description here"></a></p>