Skip to content

Commit

Permalink
Documenting the new @libav.js namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Yahweasel committed Feb 14, 2024
1 parent 24ec244 commit 9590d6d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ of using libav.js from a CDN:
<!doctype html>
<html>
<body>
<script type="text/javascript">LibAV = {base: "https://unpkg.com/libav.js@4.8.6/dist"};</script>
<script type="text/javascript" src="https://unpkg.com/libav.js@4.8.6/dist/libav-4.8.6.0.1-default.js"></script>
<script type="text/javascript">LibAV = {base: "https://cdn.jsdelivr.net/npm/@libav.js/variant-default@4.8.6/dist"};</script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/@libav.js/variant-default@4.8.6/dist/libav-4.8.6.0.1-default.js"></script>
<script type="text/javascript">(async function() {
const libav = await LibAV.LibAV({noworker: true});
await libav.writeFile("tmp.opus", new Uint8Array(
Expand Down Expand Up @@ -227,6 +227,10 @@ contractually obligated to release the source code of libav.js and all of its
dependencies* if you provide the compiled version. If you are using a compiled,
released version, it is sufficient to provide the `sources` directory.

libav.js is published to NPM as `libav.js`, and each released variant is
published in a much smaller NPM package as `@libav.js/variant-<variant>`. The
CDN example above uses the `@libav.js/variant-default` package, for example.


## Bundlers

Expand Down

0 comments on commit 9590d6d

Please sign in to comment.