0.0.33 • Published 3 years ago
chomecast-sender v0.0.33
chomecast-sender
A completely typed chromecast sender application
Description
This is a CAF-Sender application completely built in Typescript with support for on and off event listeners.
Usage
ES6
import Chromecast from 'chomecast-sender';
CJS
const Chromecast = require('chomecast-sender');
Initialisation
const cast = new Chromecast(receiverApplicationId)
Available methods
import Chromecast, {CastEventType} from "chomecast-sender";
const cast = new Chromecast(receiverApplicationId);
cast.connect();
cast.disconnect();
cast.seek(50);
cast.volume(0.2);
cast.playPause();
cast.muteUnmute();
cast.castMedia(HTMLVideoElement);
await cast.send(namespaceObject);
cast.on(CastEventType.AVAILABLE, event: CastEvent => {
//..code goes here
})
cast.off(CastEventType.AVAILABLE, event: CastEvent => {
//..code goes here
})
For list of available events check out the CastEventType
0.0.33
3 years ago
0.0.30
3 years ago
0.0.31
3 years ago
0.0.32
3 years ago
0.0.27
3 years ago
0.0.28
3 years ago
0.0.29
3 years ago
0.0.26
3 years ago
0.0.25
3 years ago
0.0.24
3 years ago
0.0.23
3 years ago
0.0.22
3 years ago
0.0.21
3 years ago
0.0.20
3 years ago
0.0.19
3 years ago
0.0.18
3 years ago
0.0.17
3 years ago
0.0.16
3 years ago
0.0.15
3 years ago
0.0.14
3 years ago
0.0.13
3 years ago
0.0.12
3 years ago
0.0.11
3 years ago
0.0.1
3 years ago