from vidstream import ScreenShareClient import threading sender = ScreenShareClient('192.168.43.157', 9999) t = threading.Thread(target=sender.start_stream) t.start() while input("") != 'STOP': continue sender.start_stream()
from vidstream import ScreenShareClient client = ScreenShareClient('127.0.0.1', 4444) client.start_stream() while True: continue client.stop_stream()
def screen(): sender = ScreenShareClient(ipScreen, 22224) sender.start_stream()
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: print(rd + 'Please Specify.')
from vidstream import ScreenShareClient import threading sender = ScreenShareClient('198.168.0.106', 9999) t = threading.Thread(target=sender.start_stream()) t.start() while input("") != "STOP": continue sender.stop_stream()