Create class for media foundation