Skip to main content

this is a package that is used to stream camera, audio, screenshare data via network

examples:-

server.py
    from vidshare import StreamingServer
    import threading

    server = StreamingServer("localhost", 5000) #set your ip and port on server

    thread = threading.Thread(target = server.start_server) #thread to start server
    thread.start() #start the thread

    while True:
        input_ = input('Enter Quit To Exit : ')
        if input_ == 'quit' or input_ == 'exit':
            server.stop_server() #to stop the server
            break

audio client example:-
client1.py
    from vidshare import AudiostreamClient
    import threading

    server = AudiostreamClient("localhost", 8000) #ip and port to connect to the server

    thread = threading.Thread(target = server.connect_client) #thread to connect to the server
    thread.start() #start the thread

    while True:
        input_ = input('Enter Quit To Exit : ')
        if input_ == 'quit' or input_ == 'exit':
            server.close_connection() #to close the connection to the server
            break

client2.py
    from vidshare import AudiostreamClient
    import threading

    server = AudiostreamClient("localhost", 8000) #ip and port to connect to the server

    thread = threading.Thread(target = server.connect_client) #thread to connect to the server
    thread.start() #start the thread

    while True:
        input_ = input('Enter Quit To Exit : ')
        if input_ == 'quit' or input_ == 'exit':
            server.close_connection() #to close the connection with the server
            break

screenshare streaming example:-

client1.py
    from vidshare import Screenshareclient
    import threading

    server = Screenshareclient("localhost", 8000, quit_key = "q") #ip and port to connect to the server and quit_key which is used to quit the cv2 window

    thread = threading.Thread(target = server.connect_client) #thread to connect to the server
    thread.start() #start the thread

    while True:
        input_ = input('Enter Quit To Exit : ')
        if input_ == 'quit' or input_ == 'exit':
            server.close_connection() #to close the connection to the server
            break

client2.py
    from vidshare import Screenshareclient
    import threading

    server = Screenshareclient("localhost", 8000, quit_key = "q") #ip and port to connect to the server and quit_key which is used to quit the cv2 window

    thread = threading.Thread(target = server.connect_client) #thread to connect to the server
    thread.start() #start the thread

    while True:
        input_ = input('Enter Quit To Exit : ')
        if input_ == 'quit' or input_ == 'exit':
            server.close_connection() #to close the connection to the server
            break

camera client example:-

client1.py
    from vidshare import CamerastreamClient
    import threading

    server = CamerastreamClient("localhost", 8000, camera = 0) #ip and port to connect to the server and camera to define camera number default is 0

    thread = threading.Thread(target = server.connect_client) #thread to connect to the server
    thread.start() #start the thread

    while True:
        input_ = input('Enter Quit To Exit : ')
        if input_ == 'quit' or input_ == 'exit':
            server.close_connection() #to close the connection to the server
            break

client2.py
    from vidshare import CamerastreamClient
    import threading

    server = CamerastreamClient("localhost", 8000, camera = 0) #ip and port to connect to the server and camera to define camera number default is 0

    thread = threading.Thread(target = server.connect_client) #thread to connect to the server
    thread.start() #start the thread

    while True:
        input_ = input('Enter Quit To Exit : ')
        if input_ == 'quit' or input_ == 'exit':
            server.close_connection() #to close the connection to the server
            break

Release files for vidshare 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vidshare 1.1.1
File Size Uploaded
vidshare-1.1.1.tar.gz 4.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vidshare 1.1.1
File Interpreter ABI Platform
vidshare-1.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.2 kB

Release files / vidshare-1.1.1.tar.gz

Download URL vidshare-1.1.1.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1d75b554009283ecdfbe66b6cd950da06ec869a9020ec4420a2f1d7e4162f477
BLAKE2b-256 checksum
How to use checksums
5b2c8ac618e8b7bd5833ecae092ab3cd4c87daa820404658702e0d2bafdbd8fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.9.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

Release files / vidshare-1.1.1-py3-none-any.whl

Download URL vidshare-1.1.1-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d80c2ebff4da0f5b8b9b152ef2537150b4d441661aad8522a0bedd0f73465515
BLAKE2b-256 checksum
How to use checksums
2a860500564674e15bcc6d9340a0816ad03dd62791a7892c7e5be38d19e3e913
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.9.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

Release history Release notifications | RSS feed

This release

1.1.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page