Пример #1
0
 def CreatePhoneTermianl():
     MicUDPCommunicator.printListOfMicDevices()
     SpeakerUDPCommunicator.printListOfSpeakerDevices()
     micDeviceID = -1
     outDeviceID = -1
     global PT
     PT = PhoneTerminal(micDeviceID, outDeviceID)
     PT.fnPrint = putStatus
     sleep(2)
Пример #2
0
 def CreatePhoneTermianl():
     MicUDPCommunicator.printListOfMicDevices()
     SpeakerUDPCommunicator.printListOfSpeakerDevices()
     micDeviceID = -1
     outDeviceID = -1
     global PT
     PT = PhoneTerminal(micDeviceID, outDeviceID)
     PT.fnPrint = putStatus
     if (PT.enableVideoCalling):
         tw = Tkinter.Toplevel()
         frame = VideoGUI(master=tw,
                          Width=640,
                          Height=480,
                          imageWidth=640,
                          imageHeight=480)
         frame.startCamera(PT.VideoReciver)
         frame.pack()
         tw.after(0, frame.Loop)
     sleep(2)
Пример #3
0
        # fill remainder of frameset with silence
        self.Hearing.returnBytes(b'\x80' * restframes)


def GroupCaller(DialTo, PortNo, micDeviceID=1):
    caller = PhoneTerminal(micDeviceID)
    if (True):
        # try:
        caller.ConnectToConference(DialTo, PortNo)

    caller.LeaveConference(DialTo, PortNo)


if __name__ == "__main__":

    MicUDPCommunicator.printListOfMicDevices()
    SpeakerUDPCommunicator.printListOfSpeakerDevices()
    micDeviceID = -1
    outDeviceID = -1
    areYouCaller = False
    isGroupCall = True

    caller = PhoneTerminal(micDeviceID, outDeviceID)
    sleep(2)

    if (isGroupCall):
        caller.ConnectToConference(MultiCastGrp, MuliCastPortNo)
    else:
        if (areYouCaller):
            caller.ConnectTo('192.168.1.103')