Giter Site home page Giter Site logo

replay-mirror's People

Contributors

exclipy avatar kevinwuwon avatar slash-dev avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

replay-mirror's Issues

Draggable slider

It'd be really cool if the user could drag the slider just like any other video player.

  1. SeekBarComponent would listen for mousedown, mousemove and mouseup events. (Do not use the drag/drop API).
  2. Implement all the logic to make the slider look like it's tracking the mouse as it's being dragged.
  3. It would expose Angular events like seekstart seek and seekend which are analagous to the mouse events but emit the number of seconds instead of the mouse position.
  4. ViewerComponent would dispatch actions for the above.
  5. These actions would be mixed in using the existing ngrx/RxJS system to the other actions that might happen at any time.

Some random things that come to mind:

  • Unlike in regular video players, I think when the user has the mouse down, the video should continue to play. That way, if the user has dragged to the position -6s and hold it there, the video should play at normal speed showing 6 seconds in the past.
  • The user should be allowed to drag to before the video starts. The placeholder countdown should show.
  • The seek bar should probably not change in scale while the user holds their mouse down.
  • When the user drags to past the end of the recorded video, it switches to live view
  • If in the isEnded state (ie. stop button has been clicked), it'll behave just like a regular video player.

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.