restreamer-ui icon indicating copy to clipboard operation
restreamer-ui copied to clipboard

improvement to get json playerConfig

Open utilsites opened this issue 3 years ago • 2 comments

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.

utilsites avatar Oct 27 '22 11:10 utilsites

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.

ioppermann avatar Oct 27 '22 11:10 ioppermann

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.

utilsites avatar Oct 27 '22 12:10 utilsites