Permalink
Browse files

cleaner README example

  • Loading branch information...
1 parent 55edeb8 commit d0c53e8e8e73f126b46c30ede8ced1743c109898 @clayallsopp clayallsopp committed Jul 22, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.md
View
@@ -354,8 +354,8 @@ Added wrapper for playing remote and local media. Available are `modal` and cust
```ruby
# Plays in your custom frame
-local_file = File.join(NSBundle.mainBundle.resourcePath, 'test.mp3')
-BW::Media.play(NSURL.fileURLWithPath(local_file)) do |media_player|
+local_file = NSURL.fileURLWithPath(File.join(NSBundle.mainBundle.resourcePath, 'test.mp3'))
+BW::Media.play(local_file) do |media_player|
media_player.view.frame = [[10, 100], [100, 100]]
self.view.addSubview media_player.view
end

0 comments on commit d0c53e8

Please sign in to comment.