Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@nrk/embed-player

Package Overview
Dependencies
Maintainers
200
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nrk/embed-player

latest
Source
npmnpm
Version
1.1.15
Version published
Maintainers
200
Created
Source

@nrk/tv-player

New player for tv.nrk.no as a replacement for ludo.

Trailer mode

The tv-player supports a special attribute named trailermode. This is used for using the player for playing trailers in frontpage hero elements and on the series page, but also displaying the controls when fullscreening the player.

Film mode

It also supports an attribute called filmmode with special functionality for films and other standalone programs. As of now, it only adds a back button to the episode info element, that emits the event PlayerEvents.NavigateBack that it is up to the page to handle.

Attributes and properties

  • progress Indicate to the player what kind of progress the user has, if any. This is used to display the poster correctly for cases where there is a starttime for the player and this starttime is due to progress or not.

Behaviour

  • Interaction points (binge, skip recap and intro) are disabled
  • No poster is shown
  • Controls are hidden when not in fullscreen, shown in fullscreen
  • An autoplayable video-element is always created to enable playback without interaction
  • subtitles are not read by screen readers

Refer to the documentation for trailer-player for details on controlling the player when using it as trailer player (functions and events) as this functionality is shared between these two players.

Debugging

Tv-player logs to an internal log handler using the logging framework from player-core. To display logs (from the start of the current playback session), run

document.querySelector('tv-player').logToConsole();

in the browser console for the page containing the player.

FAQs

Package last updated on 30 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts