Skip to content

Commit

Permalink
Merge pull request #4 from JaviSoto/patch-1
Browse files Browse the repository at this point in the history
Use ```objc to better highlight code blocks in the README
  • Loading branch information
0xced committed May 28, 2013
2 parents 1efdd60 + cdb0ff5 commit ba3acd9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand All @@ -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];
```
Expand All @@ -70,4 +70,4 @@ Cédric Luthi
## License
XCDYouTubeVideoPlayerViewController is available under the MIT license. See the LICENSE file for more information.
XCDYouTubeVideoPlayerViewController is available under the MIT license. See the LICENSE file for more information.

0 comments on commit ba3acd9

Please sign in to comment.