Giter Club home page Giter Club logo

party-picture-stream's People

Contributors

mbraeunlein avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

party-picture-stream's Issues

Don't drop images

In the current code, all 5 seconds the last image is requested from the server. If two images get uploaded during this period of time, the first image will never be displayed.

Suggestion:

Save on the server side, what images have been uploaded to the server since the last request. On a new request, send all images in this list to the client. The client still displays one image every 5 seconds and polls the server, when he is out of images.

Make multiple client behavior configureable

When multiple display clients are connected to the server, then the server can behave in two possible ways:

  • Split the load between the clients
  • Let every client display every image

There is no rational default value, since it is application specific, therefor it should be configurable.

Unique filename

Multiple users will upload files. There is a chance, that the file name will not be unique. In this case, an old image will be overwritten.

Suggestions:

Implement a global counter and append it's value to the name of the uploaded image.

Minimize display delay

It is thinkable, that more than one image every 5 seconds is uploaded. The delay between the image upload and the image actually appearing at the screen should be as short as possible to increase the fun factor (party party).

Suggestion:

If issue 1 is solved as suggested, then the viewer pulls a bunch of images on every request. It is possible to compute the time needed to display all images. (number of images * 5 seconds).

Specify a threshold max-time e.g. 1 minute.

If the the time needed to display all images polled from the server is greater than max-time, then there are two possible ways to solve this problem:

  1. Lower the time until the next image is displayed. Here a minimum should be specified. (e.g. 2 seconds)

  2. Display 2 or even 4 images next to each other.

If the threshold cant be reached by lowering the time between two images displayed, then the viewer should automatically switch to displaying more images at once.

After every poll, the delay and the layout are computed.

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.