https://github.com/swz-git/easymedia
A node media player powered by ffmpeg.
https://github.com/swz-git/easymedia
Last synced: 10 months ago
JSON representation
A node media player powered by ffmpeg.
- Host: GitHub
- URL: https://github.com/swz-git/easymedia
- Owner: swz-git
- Created: 2020-08-23T10:27:57.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-23T21:03:09.000Z (almost 6 years ago)
- Last Synced: 2025-08-09T05:22:08.793Z (10 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# EasyMedia
A node media player powered by ffmpeg.
## Installing
Make sure to have ffmpeg installed.
If you do not you can install it via
this tutorial from [Windowsloop](https://windowsloop.com/install-ffmpeg-windows-10/#download-ffmpeg).
Type `npm i -s easymedia` into your terminal/console.
## Usage
### Play sound from link or local path
```js
const { Sound } = require("easymedia");
let mySound = new Sound("https://example.com/sound.mp3");
mySound.play();
```
### Play media (a video) from link or local path
```js
const { Media } = require("easymedia");
let myFilm = new Media("https://example.com/video.mov");
myFilm.play();
```