Giter Site home page Giter Site logo

macoda-mattress's People

Contributors

mate-h avatar

Watchers

 avatar

macoda-mattress's Issues

Seeking video customization pages

Take this video file: customization-demo-2.mp4 and skip to the appropriate times as the user skips the buttons.
image

customization-demo-2.mp4 has the following keyframes:

  1. 00:18 (437 F)
  2. 00:24(580 F)
  3. 00:33 (793 F)
  4. 00:49 (1177 F)

By default, the video is paused.
As user clicks the right arrow, the page is incremented, and the video is seeked to the next keyframe. If the current page is the last, wrap around (start from beginning). Same with the first page, skip to last.

Video state: playing/paused.
Animation state: current page (1-4), previous page

If click happens:

  1. Is the video paused?
    1.1 if paused, then set to playing. Change animation state (increment or decrement with wrap around)
    1.2 if not paused, the skip to current page's keyframe. It's set to paused.

(Animation time could be constant between pages, let's say 1s, may not look good)

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.