public Player getPlayer() throws MsControlException { if (this.player != null) { return player; } else { throw new MsControlException(this.uri + " This MediaGroup contains no Player"); } }
public VxmlDialog createVxmlDialog(Parameters paramParameters) throws MsControlException { throw new MsControlException("VxmlDialog is not yet supported"); // VxmlDialogImpl vxmlDialogImpl = new VxmlDialogImpl(this, mgcpWrapper, paramParameters); // return vxmlDialogImpl; }
public Recorder getRecorder() throws MsControlException { if (this.recorder != null) { return this.recorder; } else { throw new MsControlException(this.uri + " This MediaGroup contains no Recorder"); } }
public SignalDetector getSignalDetector() throws MsControlException { if (this.detector != null) { return this.detector; } else { throw new MsControlException(this.uri + " This MediaGroup contains no Signal Detector"); } }
public VxmlDialog createVxmlDialog(Parameters paramParameters) throws MsControlException { throw new MsControlException("VxmlDialog is not yet supported"); // VxmlDialogImpl vxmlDialogImpl = new VxmlDialogImpl(this, mgcpWrapper, paramParameters); // return vxmlDialogImpl; }
public SignalDetector getSignalDetector() throws MsControlException { if (this.detector != null) { return this.detector; } else { throw new MsControlException(this.uri + " This MediaGroup contains no Signal Detector"); } }
public Player getPlayer() throws MsControlException { if (this.player != null) { return player; } else { throw new MsControlException(this.uri + " This MediaGroup contains no Player"); } }
public Recorder getRecorder() throws MsControlException { if (this.recorder != null) { return this.recorder; } else { throw new MsControlException(this.uri + " This MediaGroup contains no Recorder"); } }
public SignalGenerator getSignalGenerator() throws MsControlException { if (this.generator != null) { return this.generator; } else { throw new MsControlException(this.uri + " This MediaGroup contains no Signal Generator"); } }
private void checkURI(URI[] uris) throws MsControlException { if (uris == null) { throw new MsControlException("URI[] cannot be null"); } for (URI uri : uris) { if (uri == null) { throw new MsControlException("URI cannot be null"); } if (uri.getScheme().equalsIgnoreCase("data")) { continue; } } }
public MediaMixer createMediaMixer(Configuration<MediaMixer> pattern) throws MsControlException { if (pattern == null) { throw new MsControlException("Configuration is NULL"); } MediaConfigImpl config = (MediaConfigImpl) factory.getMediaConfig(pattern); if (config == null) { throw new MsControlException("Configuration is not supported: " + pattern); } MediaMixerImpl mixer = new MediaMixerImpl(this, config); mixers.add(mixer); return mixer; }
public MediaGroup createMediaGroup(Configuration<MediaGroup> pattern) throws MsControlException { if (pattern == null) { throw new MsControlException("Configuration is NULL"); } MediaConfigImpl config = (MediaConfigImpl) factory.getMediaConfig(pattern); if (config == null) { throw new MsControlException("Configuration is not supported: " + pattern); } MediaGroup group = new MediaGroupImpl(this, config); groups.add(group); return group; }
public MediaGroup createMediaGroup(Configuration<MediaGroup> pattern) throws MsControlException { if (pattern == null) { throw new MsControlException("Configuration is NULL"); } MediaConfigImpl config = (MediaConfigImpl) factory.getMediaConfig(pattern); if (config == null) { throw new MsControlException("Configuration is not supported: " + pattern); } MediaGroup group = new MediaGroupImpl(this, config); groups.add(group); return group; }
public MediaMixer createMediaMixer(Configuration<MediaMixer> pattern) throws MsControlException { if (pattern == null) { throw new MsControlException("Configuration is NULL"); } MediaConfigImpl config = (MediaConfigImpl) factory.getMediaConfig(pattern); if (config == null) { throw new MsControlException("Configuration is not supported: " + pattern); } MediaMixerImpl mixer = new MediaMixerImpl(this, config); mixers.add(mixer); return mixer; }
public MixerAdapter createMixerAdapter(MediaConfig config, Parameters params) throws MsControlException { if (config == null) { throw new MsControlException("MediaConfig cannot be null"); } MediaConfig cfg = ((MediaConfigImpl)config).createCustomizedClone(params); Boolean hasDtmfClamp=false; if (config == MixerAdapter.DTMF_CLAMP) hasDtmfClamp=true; MixerAdapterImpl adaptor = new MixerAdapterImpl(this,params,hasDtmfClamp); adaptors.add(adaptor); return adaptor; }
public MixerAdapter createMixerAdapter(MediaConfig config, Parameters params) throws MsControlException { if (config == null) { throw new MsControlException("MediaConfig cannot be null"); } MediaConfig cfg = ((MediaConfigImpl)config).createCustomizedClone(params); Boolean hasDtmfClamp=false; if (config == MixerAdapter.DTMF_CLAMP) hasDtmfClamp=true; MixerAdapterImpl adaptor = new MixerAdapterImpl(this,params,hasDtmfClamp); adaptors.add(adaptor); return adaptor; }
public JoinableStream getJoinableStream(StreamType value) throws MsControlException { for (MediaStreamImpl s : streams) { if (s.getType().equals(value)) { return s; } } throw new MsControlException("Stream of type " + value + " is not supported"); }
public JoinableStream getJoinableStream(StreamType value) throws MsControlException { for (MediaStreamImpl s : streams) { if (s.getType().equals(value)) { return s; } } throw new MsControlException("Stream of type " + value + " is not supported"); }
public MixerAdapter createMixerAdapter(Configuration<MixerAdapter> pattern, Parameters param) throws MsControlException { if (config == null) { throw new MsControlException("Configuration can't be null"); } MediaConfigImpl cfg = (MediaConfigImpl) getConfiguration(pattern).createCustomizedClone(param); MixerAdapterImpl adaptor = new MixerAdapterImpl(this,param); adaptors.add(adaptor); return adaptor; }
public MixerAdapter createMixerAdapter(Configuration<MixerAdapter> pattern, Parameters param) throws MsControlException { if (config == null) { throw new MsControlException("Configuration can't be null"); } MediaConfigImpl cfg = (MediaConfigImpl) getConfiguration(pattern).createCustomizedClone(param); MixerAdapterImpl adaptor = new MixerAdapterImpl(this,param); adaptors.add(adaptor); return adaptor; }