remove old comment. Audio works with pidgin.
This commit is contained in:
		
							parent
							
								
									e92fec4bdc
								
							
						
					
					
						commit
						e0adaa8a87
					
				
					 1 changed files with 3 additions and 7 deletions
				
			
		| 
						 | 
					@ -26,10 +26,6 @@ Handles the jingle signalling protocol
 | 
				
			||||||
#   * config:
 | 
					#   * config:
 | 
				
			||||||
#     - codecs
 | 
					#     - codecs
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# * figure out why it doesn't work with pidgin:
 | 
					 | 
				
			||||||
#     That's maybe a bug in pidgin:
 | 
					 | 
				
			||||||
#       http://xmpp.org/extensions/xep-0176.html#protocol-checks
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import xmpp
 | 
					import xmpp
 | 
				
			||||||
import helpers
 | 
					import helpers
 | 
				
			||||||
import gajim
 | 
					import gajim
 | 
				
			||||||
| 
						 | 
					@ -159,13 +155,13 @@ class ConnectionJingle(object):
 | 
				
			||||||
            transport = JingleTransportIBB()
 | 
					            transport = JingleTransportIBB()
 | 
				
			||||||
        c = JingleFileTransfer(jingle, transport=transport,
 | 
					        c = JingleFileTransfer(jingle, transport=transport,
 | 
				
			||||||
            file_props=file_props, use_security=use_security)
 | 
					            file_props=file_props, use_security=use_security)
 | 
				
			||||||
        file_props.algo = self.__hash_support(contact) 
 | 
					        file_props.algo = self.__hash_support(contact)
 | 
				
			||||||
        jingle.add_content('file' + helpers.get_random_string_16(), c)
 | 
					        jingle.add_content('file' + helpers.get_random_string_16(), c)
 | 
				
			||||||
        jingle.start_session()
 | 
					        jingle.start_session()
 | 
				
			||||||
        return c.transport.sid
 | 
					        return c.transport.sid
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def __hash_support(self, contact):
 | 
					    def __hash_support(self, contact):
 | 
				
			||||||
        
 | 
					
 | 
				
			||||||
        if contact.supports(xmpp.NS_HASHES):
 | 
					        if contact.supports(xmpp.NS_HASHES):
 | 
				
			||||||
            if contact.supports(xmpp.NS_HASHES_MD5):
 | 
					            if contact.supports(xmpp.NS_HASHES_MD5):
 | 
				
			||||||
                return 'md5'
 | 
					                return 'md5'
 | 
				
			||||||
| 
						 | 
					@ -175,7 +171,7 @@ class ConnectionJingle(object):
 | 
				
			||||||
                return 'sha-256'
 | 
					                return 'sha-256'
 | 
				
			||||||
            elif contact.supports(xmpp.NS_HASHES_SHA512):
 | 
					            elif contact.supports(xmpp.NS_HASHES_SHA512):
 | 
				
			||||||
                return 'sha-512'
 | 
					                return 'sha-512'
 | 
				
			||||||
            
 | 
					
 | 
				
			||||||
        return None
 | 
					        return None
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def iter_jingle_sessions(self, jid, sid=None, media=None):
 | 
					    def iter_jingle_sessions(self, jid, sid=None, media=None):
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue