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

improvement to get json playerConfig #18

Open
utilsites opened this issue Oct 27, 2022 · 2 comments
Open

improvement to get json playerConfig #18

utilsites opened this issue Oct 27, 2022 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@utilsites
Copy link

Restreamer has a url to get player configs:
https://[restreamer-domain]/channels/[GUID]/config.js

this returns the following script file (example):
var playerConfig = {"autoplay":false,"mute":true, ... }}

I think it would be better to just return the json part, without "var playerConfig = ", that way it would be much more interoperable, without needing to instantiate script to get a var name, that is more hardcoded.

@ioppermann
Copy link
Member

This is not meant to be an API to get the config for the player from. It's a file as part of the page where the player is loaded.

@utilsites
Copy link
Author

Right, but if I want to use a different video webplayer than videojs or add some player plugins without changing Restreamer code, this would be very useful.
Thanks for your comment.

@svenerbeck svenerbeck added the question Further information is requested label Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants