Skip to content
This repository has been archived by the owner on May 25, 2019. It is now read-only.
/ stremio-cast Public archive
forked from Ivshti/stremio-cast

Dead-simple HTTP-based casting protocol

Notifications You must be signed in to change notification settings

Stremio/stremio-cast

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stremio Cast

Abstract protocol over HTTP for communicating with a media player

Use cases:

  • Casting / remote control (Chromecast-style) to a DIY media center
  • Unified interface to different casting protocols (Chromecast, DLNA, Airplay)
  • Simple, easy to understand and implement alternative to complex protocols like castv2 or DLNA

Properties

These properties are used to describe player state, which goes two ways - a POST to the stremiocast endpoint can set any of these properties, and a GET on the endpoint would return a full description of the player state using those properties

  • source - read/write - url to media source; set this to begin playback
  • volume - read/write - player volume, from 0 to 1
  • time - read/write - current player time; use this to seek
  • paused - read/write - whether the playback is paused
  • state - read - current player state; 0 - idle, 1 - opening, 2 - buffering, 3 - playing, 4 - paused, 5 - stopped, 6 - ended, 7 - error
  • length - read - time length of current media

Functions

  • play(source) - start playback
  • stop() - stop playback
  • update(cb) - re-fetch status from casting device

DISCLAIMER This does not pretend to be an alternative of existing protocols, such as DLNA and castv2. It's merely something similar designed with extreme simplicity in mind over HTTP and JSON.

About

Dead-simple HTTP-based casting protocol

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • JavaScript 100.0%