N1 Nex1on

Video player

What it does

One place for everything about video on the site: player settings, allowed video services and advertising in the player. Switch the module off and videos play with the plain browser player, without our buttons and ads.

Installing and enabling

Open “Panel → Modules”, find “Video player”, press “Install”, then “Enable”. The module’s section appears in the panel menu.

Settings

Settings live in the “Video player” section of the panel menu; shared things are in “Site settings”.

  • Player settings.
  • Allowed video services.
  • Ads in the player.

Showing it on the site

Every block and tag below can be put into any theme tag file or onto a page: press “Copy” and paste the code. The same list is in the panel under “Tags and blocks”.

Without code: “Panel → Home and blocks” — place the block where you want it (home page, full entry, sidebar).

Video player block

Our player: a clip from Media, a series collection or a link to YouTube, Vimeo, Rutube, VK. Place it anywhere on a page.

Code
{block:player.video id=5 size=m autoplay=muted}

Where it works: on any page

Parameters:

  • id — Clip number in Media. (from 1 to 999999999)
  • series — Series collection number. (from 1 to 999999999)
  • url — Link to a service clip (YouTube, Vimeo, Rutube, VK).
  • size — Size: s (small), m (medium), l (large), full (whole column). (s | m | l | full; default full)
  • autoplay — off — on click; muted — starts by itself without sound when the block is in view. (off | muted; default off)
  • start — Start from this second. (from 0 to 86400; default 0)
  • ads — no — do not show ads in this player. (yes | no; default yes)

Frequently asked questions

How do I put a video on a page?

The block {block:player.video id=5 size=m autoplay=muted}: id is the video number, size is the size, autoplay is autostart (muted in the example).

What happens if I turn the module off?

The video plays in the browser’s ordinary player, without our buttons and ads.