ZeroMux icon indicating copy to clipboard operation
ZeroMux copied to clipboard

Make code cleaner

Open MuxZeroNet opened this issue 7 years ago • 0 comments

The MP4 multiplexer knows where each sample is, and how to write, but it stores sample information in a complicated way. Further work is needed to improve its modularity.

  • [ ] Don't make a second level in sampleInfo object. Implement data selectors for items in sampleInfo when necessary. Don't go across abstraction barriers.
  • [ ] Reduce the number of parameters. Take a more object oriented approach to write new code.
  • [ ] Use more concise and descriptive variable names and function names. Include comments when necessary.
  • [x] Organize samples in a way that it should know which samples to write when I seek the video.
  • [x] Stick to W3C definition. Correctly distinguish between INIT_SEGMENT and MEDIA_SEGMENT.

MuxZeroNet avatar Jan 10 '17 05:01 MuxZeroNet