Socket
Socket
Sign inDemoInstall

@imgix/ix-player-react

Package Overview
Dependencies
17
Maintainers
12
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @imgix/ix-player-react

An imgix video custom element for React


Version published
Weekly downloads
79
increased by19.7%
Maintainers
12
Created
Weekly downloads
 

Readme

Source

imgix Logo

<IxPlayer/>

Downloads Version License

Introduction

<IxPlayer /> is the official imgix React video player component, built on top of our ix-player web component and Media Chrome.

Installation

npm install @imgix/ix-player-react

or

yarn add @imgix/ix-player-react

Usage

import IxPlayer from '@imgix/ix-player-react';

<IxPlayer
  src="my.domain.imgix.video/my-video.mp4?fm=hls"
  type="hls"
/>;

Lazy-loading

Defer loading of IxPlayer by importing from @imgix/ix-player-react/lazy.

import IxPlayer from '@imgix/ix-player-react/lazy';

<IxPlayer
  loading="viewport"
  src="https://assets.imgix.video/videos/alexa_ski_big_bear_mountain.MOV?fm=hls"
  type="hls"
  gifPreview
  posterParams="video-thumbnail-time=2"
/>;

If you are generating your pages with a Node.js server (for example, Next.js), consider using @imgix/ix-player-react/lazy with a blurhash library and imgix Video API's video-generate parameter to generate a placeholder to display during loading.

Docs

API reference lives on Github.

FAQs

Last updated on 02 Nov 2023

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc