So I've found some source code now. But I'm having two issues with inheriting the control.
The first issue is the control i was using had the information assigned by a parent control, it was not added to page like these controls.
For example with a gallery control normally you would add it to a page in the admin area, then assign it what galleries to show. I want to programatically decide this, I'm using tags to assing photo and video to my custom objects so i need to filter programatically based on this.
The Second issue I am having is that i need to display a list of Videos, Photos, and Documents inside the player and game module, in the ascx template they only ever have one repeater, so i assuming this cannot be done using them, so I am unsure as to where to begin here.