Git Product home page Git Product logo

Comments (4)

ElGrecode avatar ElGrecode commented on August 23, 2024

Need to synchronize audio recording and video recording to be able to playback.
When creating a audio recording, video recording was broken in the process. This is possibly because we are re-rendering the code canvas.
Investigate why we are now not able to type now in code editor
_Investigate why audio onChange event is being fired every time there is a key event

Answer:
It turns out that because our code editor is a 3rd party plugin, it maintains its own state. Unfortunately, whenever we re-render our top level component, we also re-render our code editor, but the state doesn't remain. The choice was to never re-render the top level component unless a playback is occurring. BUT, if we can figure out a way to capture and maintain the state of the code editor via brace-- we can always re-render without issue.

from follow.codes.

ElGrecode avatar ElGrecode commented on August 23, 2024

Left to do for this branch:

  • Visual feedback or indication of playback
  • Refactoring into React principles
  • Clean up

from follow.codes.

ElGrecode avatar ElGrecode commented on August 23, 2024

Broke some things in this last commit to move some things around and separate the player into a more modular form that can be moved into any page. Player will now be the only component that will handle actions for the playback state.
Fix Audio playback (bd528b0)
Fix Clearing of Code Editor (bd528b0)

Note
I made the decision to stop re-rendering of the top level FollowApp component. Instead each immediate child component will handle the rerender for themselves and all their children. This creates more event listeners, but on the flip side improves the efficiency of re-renders.

from follow.codes.

ElGrecode avatar ElGrecode commented on August 23, 2024

Last to do is audio and code clean up and some sort of documentation on structure

from follow.codes.

Related Issues (14)

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.