Browse files

#media_player should always return correct class

  • Loading branch information...
1 parent d0c53e8 commit 7dcfc347317a3f419fc0673071b9c6ee6679146e @clayallsopp clayallsopp committed Jul 22, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 motion/media/player.rb
View
7 motion/media/player.rb
@@ -117,6 +117,13 @@ def stop
end
@media_player = nil
end
+
+ def media_player
+ if @media_player.is_a? MPMoviePlayerViewController
+ return @media_player.moviePlayer
+ end
+ @media_player
+ end
end
end
end

0 comments on commit 7dcfc34

Please sign in to comment.