Skip to main content

Streaming video and audio and screenshare data via networks

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vidshare-1.1.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vidshare-1.1.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file vidshare-1.1.1.tar.gz.

File metadata

  • Download URL: vidshare-1.1.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for vidshare-1.1.1.tar.gz
Algorithm Hash digest
SHA256 1d75b554009283ecdfbe66b6cd950da06ec869a9020ec4420a2f1d7e4162f477
MD5 0fda8e139723b0fee0f4d84d3afea298
BLAKE2b-256 5b2c8ac618e8b7bd5833ecae092ab3cd4c87daa820404658702e0d2bafdbd8fc

See more details on using hashes here.

File details

Details for the file vidshare-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: vidshare-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for vidshare-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d80c2ebff4da0f5b8b9b152ef2537150b4d441661aad8522a0bedd0f73465515
MD5 5a23c63579c3a153e9b44651fbba49ce
BLAKE2b-256 2a860500564674e15bcc6d9340a0816ad03dd62791a7892c7e5be38d19e3e913

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page