Passed type to constructor since the type can be used right away to change the mediastream