Java Doc for MediaDescription.java in  » 6.0-JDK-Modules » Java-Advanced-Imaging » javax » sdp » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » Java Advanced Imaging » javax.sdp 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.sdp.MediaDescription

MediaDescription
public interface MediaDescription extends Serializable,Cloneable(Code)
A MediaDescription identifies the set of medias that may be received on a specific port or set of ports. It includes: a mediaType (e.g., audio, video, etc.) a port number (or set of ports) a protocol to be used (e.g., RTP/AVP) a set of media formats which correspond to Attributes associated with the media description. The following is an example m=audio 60000 RTP/AVP 0 a=rtpmap:0 PCMU/8000 This example identifies that the client can receive audio on port 60000 in format 0 which corresponds to PCMU/8000. Please refer to IETF RFC 2327 for a description of SDP.
author:
   deruelle
version:
   1.0




Method Summary
public  voidaddAttribute(AttributeField at)
    
public  voidaddDynamicPayloads(Vector payloadNames, Vector payloadValues)
     Adds dynamic media types to the description.
public  StringgetAttribute(String name)
     Returns the value of the specified attribute.
public  VectorgetAttributes(boolean create)
     Returns the set of attributes for this Description as a Vector of Attribute objects in the order they were parsed.
public  intgetBandwidth(String name)
     Returns the integer value of the specified bandwidth name.
public  VectorgetBandwidths(boolean create)
     Returns the Bandwidth of the specified type.
public  ConnectiongetConnection()
     Returns the connection information associated with this object.
public  InfogetInfo()
     Returns value of the info field (i=) of this object.
public  KeygetKey()
     Returns the key data.
public  MediagetMedia()
     Return the Media field of the description.
public  VectorgetMimeParameters()
     Returns a Vector containing a string of parameters for each of the codecs in this description. A parameter string is computed for each codec. The parameter string is computed in the following fashion. The rate is extracted from the rtpmap or static data. The number of channels is extracted from the rtpmap or static data. The ptime is extracted from the ptime attribute. The maxptime is extracted from the maxptime attribute. Any additional parameters are extracted from the ftmp attribute.
throws:
  SdpException - if there is a problem extracting the parameters.
public  VectorgetMimeTypes()
     Returns a Vector containing a string indicating the MIME type for each of the codecs in this description. A MIME value is computed for each codec in the media description. The MIME type is computed in the following fashion: The type is the mediaType from the media field. The subType is determined by the protocol. The result is computed as the string of the form: type + '/' + subType The subType portion is computed in the following fashion. RTP/AVP the subType is returned as the codec name.
public  VectorgetPreconditionFields()
    
public  voidremoveAttribute(String name)
     Removes the attribute specified by the value parameter.
public  voidremoveBandwidth(String name)
     Removes the specified bandwidth type.
public  voidsetAttribute(String name, String value)
    
public  voidsetAttributes(Vector Attributes)
     Adds the specified Attribute to this Description object.
public  voidsetBandwidth(String name, int value)
     Sets the value of the specified bandwidth type.
public  voidsetBandwidths(Vector bandwidths)
    
public  voidsetConnection(Connection conn)
    
public  voidsetInfo(Info i)
     Sets the i= field of this object.
public  voidsetKey(Key key)
     Sets encryption key information.
public  voidsetMedia(Media media)
     Set the Media field of the description.
public  voidsetPreconditionFields(Vector segPrecondition)
    
public  voidsetPreconditions(PreconditionFields segPrecondition)
    



Method Detail
addAttribute
public void addAttribute(AttributeField at)(Code)

Add Media Attribute based on an AttributeField value

issued by Miguel Freitas (IT) PTInovacao
Parameters:
  at - AttributeField



addDynamicPayloads
public void addDynamicPayloads(Vector payloadNames, Vector payloadValues) throws SdpException(Code)
Adds dynamic media types to the description.
Parameters:
  payloadNames - a Vector of String - each one the name of a dynamic payload to be added (usually an integer largerthan SdpConstants.AVP_DYNAMIC_MIN).
Parameters:
  payloadValues - a Vector of String - each contains the value describing the correlated dynamic payloads to be added
throws:
  SdpException - if either vector is null or empty.if the vector sizes are unequal.



getAttribute
public String getAttribute(String name) throws SdpParseException(Code)
Returns the value of the specified attribute.
Parameters:
  name - the name of the attribute.
throws:
  SdpParseException - the value of the named attribute



getAttributes
public Vector getAttributes(boolean create)(Code)
Returns the set of attributes for this Description as a Vector of Attribute objects in the order they were parsed.
Parameters:
  create - specifies whether to return null or a new empty Vector in case no attributes exists for this Description attributes for this Description



getBandwidth
public int getBandwidth(String name) throws SdpParseException(Code)
Returns the integer value of the specified bandwidth name.
Parameters:
  name - the name of the bandwidth type.
throws:
  SdpParseException - the value of the named bandwidth



getBandwidths
public Vector getBandwidths(boolean create)(Code)
Returns the Bandwidth of the specified type.
Parameters:
  create - type of the Bandwidth to return the Bandwidth or null if undefined



getConnection
public Connection getConnection()(Code)
Returns the connection information associated with this object. This may be null for SessionDescriptions if all Media objects have a connection object and may be null for Media objects if the corresponding session connection is non-null. connection



getInfo
public Info getInfo()(Code)
Returns value of the info field (i=) of this object. value of the info field (i=) of this object.



getKey
public Key getKey()(Code)
Returns the key data. the key data.



getMedia
public Media getMedia()(Code)
Return the Media field of the description. the Media field of the description.



getMimeParameters
public Vector getMimeParameters() throws SdpException(Code)
Returns a Vector containing a string of parameters for each of the codecs in this description. A parameter string is computed for each codec. The parameter string is computed in the following fashion. The rate is extracted from the rtpmap or static data. The number of channels is extracted from the rtpmap or static data. The ptime is extracted from the ptime attribute. The maxptime is extracted from the maxptime attribute. Any additional parameters are extracted from the ftmp attribute.
throws:
  SdpException - if there is a problem extracting the parameters. a Vector containing a string of parameters for each of the codecs in this description.



getMimeTypes
public Vector getMimeTypes() throws SdpException(Code)
Returns a Vector containing a string indicating the MIME type for each of the codecs in this description. A MIME value is computed for each codec in the media description. The MIME type is computed in the following fashion: The type is the mediaType from the media field. The subType is determined by the protocol. The result is computed as the string of the form: type + '/' + subType The subType portion is computed in the following fashion. RTP/AVP the subType is returned as the codec name. This will either be extracted from the rtpmap attribute or computed. other the protocol is returned as the subType. If the protocol is RTP/AVP and the rtpmap attribute for a codec is absent, then the codec name will be computed in the following fashion. String indexed in table SdpConstants.avpTypeNames if the value is an int greater than or equal to 0 and less than AVP_DEFINED_STATIC_MAX, and has been assigned a value. SdpConstant.RESERVED if the value is an int greater than or equal to 0 and less than AVP_DEFINED_STATIC_MAX, and has not been assigned a value. SdpConstant.UNASSIGNED An int greater than or equal to AVP_DEFINED_STATIC_MAX and less than AVP_DYNAMIC_MIN - currently unassigned. SdpConstant.DYNAMIC Any int less than 0 or greater than or equal to AVP_DYNAMIC_MIN
throws:
  SdpException - if there is a problem extracting the parameters. a Vector containing a string indicating the MIME type for each of the codecs in this description



getPreconditionFields
public Vector getPreconditionFields()(Code)

Get all Precondition Fields in the Media Descritpion

issued by Miguel Freitas (IT) PTInovacao Vector precondition fields



removeAttribute
public void removeAttribute(String name)(Code)
Removes the attribute specified by the value parameter.
Parameters:
  name - the name of the attribute.



removeBandwidth
public void removeBandwidth(String name)(Code)
Removes the specified bandwidth type.
Parameters:
  name - the name of the bandwidth type.



setAttribute
public void setAttribute(String name, String value) throws SdpException(Code)
Sets the value of the specified attribute
Parameters:
  name - the name of the attribute.
Parameters:
  value - the value of the named attribute.
throws:
  SdpException - if the parameters are null



setAttributes
public void setAttributes(Vector Attributes) throws SdpException(Code)
Adds the specified Attribute to this Description object.
Parameters:
  Attributes - the attribute to add
throws:
  SdpException - if the attribute is null



setBandwidth
public void setBandwidth(String name, int value) throws SdpException(Code)
Sets the value of the specified bandwidth type.
Parameters:
  name - the name of the bandwidth type.
Parameters:
  value - the value of the named bandwidth type.
throws:
  SdpException - if the name is null



setBandwidths
public void setBandwidths(Vector bandwidths) throws SdpException(Code)
set the value of the Bandwidth with the specified type
Parameters:
  bandwidths - type of the Bandwidth object whose value is requested
throws:
  SdpException - if vector is null



setConnection
public void setConnection(Connection conn) throws SdpException(Code)
Set the connection data for this entity
Parameters:
  conn - to set
throws:
  SdpException - if the connexion is null



setInfo
public void setInfo(Info i) throws SdpException(Code)
Sets the i= field of this object.
Parameters:
  i - to set
throws:
  SdpException - if the info is null



setKey
public void setKey(Key key) throws SdpException(Code)
Sets encryption key information. This consists of a method and an encryption key included inline.
Parameters:
  key - the encryption key data; depending on method may be null
throws:
  SdpException - if the key is null



setMedia
public void setMedia(Media media) throws SdpException(Code)
Set the Media field of the description.
Parameters:
  media - to set
throws:
  SdpException - if the media field is null



setPreconditionFields
public void setPreconditionFields(Vector segPrecondition) throws SdpException(Code)

Set PreconditionFields for the Media Description

issued by Miguel Freitas (IT) PTInovacao
Parameters:
  segPrecondition - Vector with values to ser
throws:
  SdpException -



setPreconditions
public void setPreconditions(PreconditionFields segPrecondition)(Code)

Set PreconditionFields for the Media Description

issued by Miguel Freitas (IT) PTInovacao
Parameters:
  segPrecondition - PreconditionFields with values to set



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.