javascript - JWPlayer Change configuration dynamically without reloading video (skin, captions, stretching) -
I want to take a Greasemonkey script to change the configuration of the JWPlayer instance dynamically without reloading the video. For example, to switch player themes, or to load closed captions etc.
I can do it with
var cfg = jwplayer () config; Cfg.stretching = "Uniform"; JWPlayer () Setup (cfg).
But it only copies the current configuration into one variable, one property changes, then sets a new player, and starts loading.
I'm not sure this is possible. The problem I have is that setting up a player with a new config works a ridiculously slow. It does not load, demand takes a lot of time and sometimes there are two charged captions too.
Comments
Post a Comment