Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Valid values for scaler are (capitalisation is ignored when reading the value from the url):

  • FitWindow: The feed will always fit the window while preserving the aspect ratio of its content. This means that it may fill either the width or the height of the window, depending on the aspect ratio of the content and of the window itself. This is the default behaviour for all image feeds.

  • FitIfLarger: The feed will grow to the maximum size of its content, but not beyond it (pixels are not being blown up). If the content is larger than the window, it will behave exactly the same as FitWindow. This is the default behaviour for timelapse feeds.

  • FillWindow: The content will grow to fill the entire window, and will overflow in one dimension to keep its aspect ratio. The focus of the scaling action will always be the image center. This is the only option that will never produce letterboxes, but also the option that will almost always hide some part of the image.

  • FitWidth: The content will grow its content to fill the width of the window while preserving its aspect ratio. It will either letterbox the content in height if necessary, or cut off what overflows, but will keep the content centered while doing so.

  • FitHeight: The content will grow its content to fill the height of the window while preserving its aspect ratio. It will either letterbox the content in width if necessary, or off what overflows, but will keep the content centered while doing so.

...

For timelapse feeds, the playback behaviour of the video can be set like this:

  • autoplay=true (default false): If set to true, the video in the feed will start playing immediately when it is loaded.

  • loop=true (default: false): If set to true, the video will start playing again when it reaches the end, otherwise it will halt.

  • controls=false (default: true): If set to false, the timelapse video will not have a control bar and cannot be started or stopped manually (autoplay is not automatically activated along with this, but you should always turn it on when deactivating controls).

...

Code Block
https://feed.yellow.camera/LAXEMEP?autoplay=true&loop=true&controls=false&scaler=fillwindow

A note on scaler parameters settings and videos

The scaler options “FitHeight”, “FitWidth” and “FillWindow” may lead to the some or all video controls lying outside the window, making it impossible to stop or start the video on browsers that don’t support these actions by clicking on the video directly. It is recommended to always use autoplay when using either of these options.

...