Lines Matching refs:type

113      * @param type The media type, e.g. {@code "audio"}.
118 public Media newMedia(String type, int port, int portCount,
120 Media media = new Media(type, port, portCount, protocol);
191 * Returns the bandwidth limit of the given type or {@code -1} if it is not
194 public int getBandwidth(String type) {
195 return mFields.getBandwidth(type);
199 * Sets the bandwith limit for the given type. The field will be removed if
202 public void setBandwidth(String type, int value) {
203 mFields.setBandwidth(type, value);
244 private Media(String type, int port, int portCount, String protocol) {
246 mType = type;
253 * Returns the media type.
331 * Returns the {@code rtpmap} attribute of the given RTP payload type
334 public String getRtpmap(int type) {
335 return super.get("a=rtpmap:" + type, ' ');
339 * Returns the {@code fmtp} attribute of the given RTP payload type or
342 public String getFmtp(int type) {
343 return super.get("a=fmtp:" + type, ' ');
347 * Sets a RTP payload type and its {@code rtpmap} and {@code fmtp}
352 public void setRtpPayload(int type, String rtpmap, String fmtp) {
353 String format = String.valueOf(type);
364 public void removeRtpPayload(int type) {
365 removeFormat(String.valueOf(type));
467 * Returns the bandwidth limit of the given type or {@code -1} if it is
470 public int getBandwidth(String type) {
471 String value = get("b=" + type, ':');
476 setBandwidth(type, -1);
482 * Sets the bandwith limit for the given type. The field will be removed
485 public void setBandwidth(String type, int value) {
486 set("b=" + type, ':', (value < 0) ? null : String.valueOf(value));
515 char type = mOrder.charAt(i);
517 if (line.charAt(0) == type) {
528 char type = line.charAt(0);
529 if (mOrder.indexOf(type) == -1) {
535 } else if (type == 'b' || type == 'a') {