Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding support for live stream URL in server.js #34

Open
mhdzumair opened this issue Apr 24, 2024 · 3 comments
Open

Adding support for live stream URL in server.js #34

mhdzumair opened this issue Apr 24, 2024 · 3 comments

Comments

@mhdzumair
Copy link

As I tested with live stream URL with latest image, The container raises an error

Error: Live media is not supported
    at Object.get (/stremio/server.js:73176:67)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async module.exports.playlist (/stremio/server.js:73255:44)
    at async /stremio/server.js:71254:28

also tried to check the server.js with https://dl.strem.io/server/v4.20.8/desktop/server.js

This will be a valuable addition to users of stremio. As of now, the live stream capability is missing in some clients like Windows Client, Latest Android TV client v1.6.9 and Web Client. However, the live streams are working on Linux, Mac, and Android clients. So i have decided to give a shot via stremio server in Web Client and turns out not supporting error.

@jaruba
Copy link
Member

jaruba commented Apr 24, 2024

but this error is from the transcoding engine, this engine is only used for Stremio Web (to convert the video / audio codecs to browser supported codecs), so why would you think this impacts Windows and Android TV?

on Windows we use MPV and on Android TV we use Media3 / VLC (depending on the user choice)

@mhdzumair
Copy link
Author

As i tested, currently windows and android tv latest versions are not working with live stream. So i thought of using docker service as a last option to fix the issue.

Elfhosted support stremio server to run on the cloud, so as a last option it might be working if the stremio service is support this.

@jaruba
Copy link
Member

jaruba commented Apr 25, 2024

i'm sorry but i don't understand what "live streams" means, you need to specify what types of live streams, it can be HLS, Dash, RTSP, RTMP, you can even stream torrents as live streams.

it should also be noted that each internal video player handles headers differently, the streaming server which serves these live streams may refuse to serve them to Stremio on some platforms because it doesn't like the headers it receives, or the video player may refuse to play them because it doesn't like the headers it gets from the live stream's servers

this is definitely not a stremio server issue (except for Stremio Web, where technologies such as HLS should be directly supported by the web app)

maybe try using stream.behaviorHints.proxyHeaders (which works only when the stremio server is attached) to solution any header requirements for your streams

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants