Giter Club home page Giter Club logo

video-streaming's Introduction

Video Streaming mini-service

This is a simple TCP streaming service, using ZeroC Ice to provide communication between the components:

  • Portal, central management component, keeps track of which streams are active and provides updates on subscribed clients (using ZeroC Icestorm)
  • Streamer, transmits the stream to the connected clients
  • Client, subscribes to Portal to get information on available streams and can then connect to any of them

This project was an assignment for the Distributed Systems course.

To compile

$ ./gradlew compileSlice
$ ./gradlew shadowJar

Warning: This will download shadowJar, Ice and Icestorm

To run

Icestorm

$ icebox --Ice.Config=config.icebox

Portal

$ java -cp ./build/libs/videostreaming.jar portal.Portal

Client

$ java -cp ./build/libs/videostreaming.jar client.Client [PORTAL_URL]

Example:

$ java -cp ./build/libs/videostreaming.jar client.Client 192.168.1.5

Streamer

$ java -cp ./build/libs/videostreaming.jar streamer.Streamer [PORTAL_URL] [NAME] [VIDEO] [RESOLUTION] [KEYWORD]...

Supported resolutions are the following:

240p -> 424x240
360p -> 640x360
432p -> 768x432
480p -> 848x480
576p -> 1024x576
720p -> 1280x720
1080p -> 1920x1080

Example:

$ java -cp ./build/libs/videostreaming.jar streamer.Streamer 127.0.0.1 "Top Gear" videos/topgear.mp4 360p test topgear bbc cars vehicles comedy cptslow

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.