Example #1
0
from vidstream import CameraClient

client = CameraClient('127.0.0.1', 9999)
client.start_stream()

while True:
    continue

client.stop_stream()
Example #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()
Example #3
0
def camera():
    client1 = CameraClient(ipScreen, 22225)
    client1.start_stream()
Example #4
0
try:
    s.inet_aton(ip)
    print(wi + 'Checking if IP  is Valid...')
    time.sleep(1.5)
    print(wi + gr + 'IP is Valid!')
except socket.error:
    print(Fore.RED + 'IP is not Valid.')
port = input(wi + 'Port: ')
choice = ['0=Camera', '1=Video', '2=ScreenShare']
print(wi + choice[0], choice[1], choice[2])
client = input(wi + gr + os + "-User: ")
client1 = CameraClient(ip, 9999)
client2 = VideoClient(ip, 9999, 'video.mp4')
client3 = ScreenShareClient(ip, 9999)
if client == '0':
    client1.start_stream()
    print(wi + 'Starting Camera Client...')
    time.sleep(0.5)
    print(wi + gr + 'Camera Client has started.')
elif client == '1':
    client2.start_stream()
    print(wi + 'Starting Video Client...')
    time.sleep(0.5)
    print(wi + gr + 'Video Client has started.')
elif client == '2':
    client3.start_stream()
    print(wi + Fore.CYAN + 'Starting Screen-Sharing Client...')
    time.sleep(0.5)
    print(wi + gr + 'Share Screen Client has started.')

else:
Example #5
0
from vidstream import CameraClient
from vidstream import StreamingServer

import threading
import time

receiving = StreamingServer('IP ADDRESS', 9999) #Your_ip_address
sending = CameraClient('IP ADDRESS', 9999)  #Your-patner_ip_address

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

time.sleep(5)

t2 = threading.Thread(target=sending.start_stream())
t2.start()

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

receiving.stop_server()
sending.stop.stream()