rubymotion/BubbleWrap — pull request #115 by clayallsopp (2012-07-22 22:59:59+00:00)
Title: BubbleWrap::Media

Added a nice wrapper for playing media in `bubble-wrap/media`. What do you guys think?

Examples:

```ruby
# Plays in your custom frame
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

# Plays in an independent modal controller
BW::Media.play_modal("http://www.hrupin.com/wp-content/uploads/mp3/testsong_20_sec.mp3")
```

And a working AppDelegate: https://gist.github.com/3161298

via #106 @kieranklaassen