0.3.6 • Published 1 year ago

@ludovicm67/media-tools v0.3.6

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Media Tools

This package contains various tools to work with media files of different format.

Install this library

npm install @ludovicm67/media-tools

The following is also exposed:

  • Buffer: Buffer that works on both Node.js and browsers
  • utils.blobToArrayBuffer: a function to convert a Blob to an ArrayBuffer
  • mp4: MP4 tools
  • ogg: OGG tools
  • webm: WebM tools
  • fix: the function to use to fix a chunk by using the previous one
  • MediaTypes: an enum with the different media types

Angular

If you are using Angular, you might need to add buffer as an allowedCommonJsDependencies in your angular.json file, like this:

{
  "projects": {
    "YOUR_PROJECT": {
      "architect": {
        "build": {
          "options": {
            "allowedCommonJsDependencies": ["buffer"]
          }
        }
      }
    }
  }
}

by replacing YOUR_PROJECT with the name of your project.

This will prevent the display of some warnings when building your project.

0.3.6

1 year ago

0.3.5

1 year ago

0.3.2

1 year ago

0.3.1

1 year ago

0.3.4

1 year ago

0.3.3

1 year ago

0.3.0

1 year ago

0.2.1

1 year ago

0.2.3

1 year ago

0.2.2

1 year ago

0.2.4

1 year ago

0.2.0

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago