Open utilsites opened 1 year ago
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.
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.
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.