in the samples mediamode is not the same as what is expected here. we send a string, and this expects a MediaModes instance