diff --git a/README.md b/README.md index f006489a..948739ab 100644 --- a/README.md +++ b/README.md @@ -32,14 +32,14 @@ Use `XCDYouTubeVideoPlayerViewController` the same way you use a `MPMoviePlayerV #### Present the video in full-screen -``` +```objc XCDYouTubeVideoPlayerViewController *videoPlayerViewController = [[XCDYouTubeVideoPlayerViewController alloc] initWithVideoIdentifier:@"9bZkp7q19f0"]; [self presentMoviePlayerViewControllerAnimated:videoPlayerViewController]; ``` #### Fetch the video identifier asynchronously -``` +```objc XCDYouTubeVideoPlayerViewController *videoPlayerViewController = [XCDYouTubeVideoPlayerViewController new]; [self presentMoviePlayerViewControllerAnimated:videoPlayerViewController]; @@ -53,7 +53,7 @@ NSURL *url = [NSURL URLWithString:@"https://gdata.youtube.com/feeds/api/standard #### Present the video in a non full-screen view -``` +```objc XCDYouTubeVideoPlayerViewController *videoPlayerViewController = [[XCDYouTubeVideoPlayerViewController alloc] initWithVideoIdentifier:@"9bZkp7q19f0"]; [videoPlayerViewController presentInView:self.videoContainerView]; ``` @@ -70,4 +70,4 @@ Cédric Luthi ## License -XCDYouTubeVideoPlayerViewController is available under the MIT license. See the LICENSE file for more information. \ No newline at end of file +XCDYouTubeVideoPlayerViewController is available under the MIT license. See the LICENSE file for more information.