func (s *MediaService) RemoveVideoEncoderConfiguration(profileToken string) error {
	return s.Client.Call(trt.RemoveVideoEncoderConfiguration{
		ProfileToken: tt.ReferenceToken(profileToken),
	}, &trt.RemoveVideoEncoderConfigurationResponse{})
}
RemoveVideoEncoderConfiguration removes a VideoEncoderConfiguration from an existing media profile.
If the media profile does not contain a VideoEncoderConfiguration, the operation has no effect.
The removal shall be persistent.
package onvif4go
import (
	trt "github.com/faceterteam/onvif4go/media"
	tt "github.com/faceterteam/onvif4go/onvif"
)
type MediaService struct {
	Client onvifCaller
}
func NewMediaService(endpoint string, onvifDevice *OnvifDevice) *MediaService {
	return &MediaService{
		Client: NewOnvifClient(endpoint, &onvifDevice.auth),
	}
}
func (s *MediaService) WithoutAuth() *MediaService {
	return &MediaService{
		Client: s.Client.WithoutAuth(),
	}
}
func (s *MediaService) GetProfiles() (res trt.GetProfilesResponse, err error) {
	err = s.Client.Call(trt.GetProfiles{}, &res)
	return
}
func (s *MediaService) GetProfile(profileToken string) (res trt.GetProfileResponse, err error) {
	err = s.Client.Call(trt.GetProfile{
		ProfileToken: tt.ReferenceToken(profileToken),
	}, &res)
	return
}
func (s *MediaService) GetServiceCapabilities() (res trt.GetServiceCapabilitiesResponse, err error) {
	err = s.Client.Call(trt.GetServiceCapabilities{}, &res)
	return
}
func (s *MediaService) GetVideoSources() (res trt.GetVideoSourcesResponse, err error) {
	err = s.Client.Call(trt.GetVideoSources{}, &res)
	return
}
func (s *MediaService) GetAudioSources() (res trt.GetAudioSourcesResponse, err error) {
	err = s.Client.Call(trt.GetAudioSources{}, &res)
	return
}
func (s *MediaService) GetAudioOutputs() (res trt.GetAudioOutputsResponse, err error) {
	err = s.Client.Call(trt.GetAudioOutputs{}, &res)
	return
}
func (s *MediaService) CreateProfile(token, name string) (res trt.CreateProfileResponse, err error) {
	err = s.Client.Call(trt.CreateProfile{
		Token: tt.ReferenceToken(token),
		Name:  tt.Name(name),
	}, &res)
	return
}
func (s *MediaService) AddVideoEncoderConfiguration(profileToken, configurationToken string) error {
	return s.Client.Call(trt.AddVideoEncoderConfiguration{
		ProfileToken:       tt.ReferenceToken(profileToken),
		ConfigurationToken: tt.ReferenceToken(configurationToken),
	}, &trt.AddVideoEncoderConfigurationResponse{})
}