Skip to content

Commit

Permalink
cleaner README example
Browse files Browse the repository at this point in the history
  • Loading branch information
clayallsopp committed Jul 22, 2012
1 parent 55edeb8 commit d0c53e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d0c53e8

Please sign in to comment.