But the update does not work
The code snippet in the above URL was for a very old version of rtMedia ( then known as BuddyPress Media).
As of now there is no easy way to get this done in the new version. We will add an argument to limit the number of media in the rtmedia_gallery function in future so that achieving this becomes easier.
@janko26 - maybe this link could help -> http://rtcamp.com/groups/rtmedia/forum/topic/problems-after-updating-media-page-not-displaying/#post-42800