Update docs

This commit is contained in:
Garrett Moon
2017-04-13 11:49:30 -07:00
parent 8b41c8c300
commit f67376a4c3
11 changed files with 78 additions and 56 deletions

View File

@@ -28,7 +28,7 @@ videoNode.asset = asset;
<pre lang="swift" class = "swiftCode hidden">
let videoNode = ASVideoNode()
let asset = AVAsset(URL: NSURL(string: "http://www.w3schools.com/html/mov_bbb.mp4"))
let asset = AVAsset(url: URL(string: "http://www.w3schools.com/html/mov_bbb.mp4")!)
videoNode.asset = asset
</pre>
</div>
@@ -78,7 +78,7 @@ There are a ton of delegate methods available to you that allow you to react to
- (void)videoNode:(ASVideoNode *)videoNode willChangePlayerState:(ASVideoNodePlayerState)state toState:(ASVideoNodePlayerState)toState;
</pre>
<pre lang="swift" class = "swiftCode hidden">
videoNode(videoNode:willChangePlayerState:toState:)
videoNode(_:willChange:to:)
</pre>
</div>
</div>