Package net.java.sip.communicator.impl.protocol.jabber.extensions.jingle

Examples of net.java.sip.communicator.impl.protocol.jabber.extensions.jingle.ContentPacketExtension


            ContentPacketExtension content,
            boolean modify)
        throws OperationFailedException,
               IllegalArgumentException
    {
        ContentPacketExtension ext = remoteContentMap.get(name);

        if(ext != null)
        {
            if(modify)
            {
                processContent(content, modify, false);
                remoteContentMap.put(name, content);
            }
            else
            {
                ext.setSenders(content.getSenders());
                processContent(ext, modify, false);
                remoteContentMap.put(name, ext);
            }
        }
    }
View Full Code Here


     */
    private void removeContent(
            Map<String, ContentPacketExtension> contentMap,
            String name)
    {
        ContentPacketExtension content = contentMap.remove(name);

        if (content != null)
        {
            RtpDescriptionPacketExtension description
                = JingleUtils.getRtpDescription(content);
View Full Code Here

        //2) what the user preference is for the stream's media type, 3) our
        //local hold status, 4) the direction supported by the device this
        //stream is reading from.

        //1. check what the remote party originally told us (from our persp.)
        ContentPacketExtension content = remoteContentMap.get(stream.getName());

        MediaDirection postHoldDir = JingleUtils.getDirection(content,
                        !getPeer().isInitiator());

        //2. check the user preference.
View Full Code Here

    return contentList;
  }

  private ContentPacketExtension createContentPacketExtention(SendersEnum senders, String name, MediaDevice dev, MediaFormat fmt, int payloadId ) {
    this.senders = senders;
    ContentPacketExtension content = new ContentPacketExtension();
    RtpDescriptionPacketExtension description = new RtpDescriptionPacketExtension();

    // fill in the basic content:
    content.setCreator(creator);
    content.setName(name);
    if (senders != null && senders != SendersEnum.both)
      content.setSenders(senders);

    // RTP description
    content.addChildExtension(description);

    // now fill in the RTP description
    if (fmt == null) {
      List<MediaFormat> formats = dev.getSupportedFormats();
      description.setMedia(formats.get(0).getMediaType().toString());
View Full Code Here

TOP

Related Classes of net.java.sip.communicator.impl.protocol.jabber.extensions.jingle.ContentPacketExtension

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.