jukebox-media-server 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -83,6 +83,23 @@ Environment variables:
83
83
  | -------- | ----------- | ------- |
84
84
  | `PORT` | Server port | `1990` |
85
85
 
86
+ ## Casting
87
+
88
+ Jukebox supports **Chromecast** (Chrome) and **AirPlay** (Safari/iOS) from
89
+ the video player control bar.
90
+
91
+ - **Chromecast**: your Chromecast must be on the same local network as the
92
+ machine running Jukebox, and the Jukebox server must be reachable from the
93
+ Chromecast by its IP/hostname (not `localhost`). Cast sessions load the
94
+ media directly from the Jukebox stream URL, so the Chromecast needs LAN
95
+ access to the server.
96
+ - **AirPlay**: works natively on Safari and iOS. `.mkv` files are not
97
+ supported by AirPlay, so Jukebox transcodes them on the fly to HLS
98
+ (requires `ffmpeg` on the server's `PATH`).
99
+
100
+ If casting fails with "Chromecast couldn't reach Jukebox", check that the
101
+ Chromecast can reach the server's IP on the port Jukebox is listening on.
102
+
86
103
  ## Supported Formats
87
104
 
88
105
  `.mp4`, `.mkv`, `.avi`, `.mov`, `.wmv`, `.m4v`, `.webm`, `.flv`, `.mpeg`,
@@ -1,2 +1,3 @@
1
1
  #!/usr/bin/env node
2
- import '../dist/server/index.js'
2
+ process.env.NODE_ENV = process.env.NODE_ENV ?? 'production'
3
+ await import('../dist/server/index.js')