move mediaServer interface to activity