Esempio n. 1
0
def server():
    try:
        ip = input(yl + 'Input Your IP: ')
        port = print(yl + 'Port is: 9999')
        print(wi + 'Waiting For Client...')
        server = StreamingServer(ip, 9999)
        server.start_server()
    except ConnectionError:
        print(rd + "Make sure you have an internet connected!")
Esempio n. 2
0
from vidstream import CameraClient
from vidstream import StreamingServer

import threading
import time

receving = StreamingServer('172.0.144.1', 9999)
sending = CameraClient('172.0.144.1', 9999)

t1 = threading.Thread(target=receving.start_server)
t1.start()

time.sleep(2)

t2 = threading.Thread(target=receving.start_server)
t2.start()

while input("") != 'STOP':
    continue

receving.start_server()
sending.start_stream()
Esempio n. 3
0
from vidstream import StreamingServer
import threading

receiver=StreamingServer('192.168.0.17',9999)

t=threading.Thread(target=receiver.start_server)
t.start()

while input("") != "STOP":
    continue

receiver.start_server()
Esempio n. 4
0
from vidstream import StreamingServer

server = StreamingServer('0.0.0.0', 9999)
server.start_server()

while input("RUNNING > ") != 'STOP':
    continue

server.stop_server()
Esempio n. 5
0
from vidstream import StreamingServer
import threading

receiver = StreamingServer('127.0.0.1', 9999)

t = threading.Thread(target=receiver.start_server())
t.start()

while input("") != 'STOP':
    continue
receiver.stop_server()