1.0.4 • Published 5 months ago

chaimu v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

Chaimu is an audio player that synchronizes audio with video.

NPM version Build status Downloads ru en

Usage example

A simple usage example:

import Chaimu from "chaimu";

const videoEl = document.querySelector("video");
const chaimu = new Chaimu({
  url: "https://s3.toil.cc/vot/translated.mp3",
  video: videoEl,
});
await chaimu.init();

Using this code, you will link the video to the audio.

If AudioContext is reached, you will be able to use advanced audio volume control.

If you want to use a classic player (via audio element), specify preferAudio param:

...
const chaimu = new Chaimu({
  ...
  preferAudio: true
});

Demo

Demo website

Install

Installation via Bun:

bun add chaimu

Installation via NPM:

npm install chaimu

Build

To build, you must have:

Don't forget to install the dependencies:

bun install

Run build:

bun build:bun
1.0.4

5 months ago

1.0.3

7 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago