Search code examples
responsivevideo-player

How to make fluidplayer responsive?


Fluidplayer documentation says one of it's features is to be responsive, here, but can't find anywhere in the docs how to do it, and from my tests, it's doesn't seem to be responsive by default.

Also can't find a way to manually resize the player on the window.resize event.


Solution

  • Apparently it was a bug on the library that recently got fixed.

    Setting the option layoutControls.fillToContainer to true keeps the player responsive to its container.

    Example:

    fluidPlayer('video-player', {
        layoutControls: {
            fillToContainer: true
        }
    }