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

@imgix/ix-player

Package Overview
Dependencies
Maintainers
12
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@imgix/ix-player

An imgix video custom element that works anywhere

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
12
Created
Source

imgix Logo

<ix-player/>

Downloads Version License

Introduction

<ix-player> is the official imgix video player web component that works anywhere.

The player UI is built on Media Chrome and <ix-video> drives the core video logic used to play videos.

Installation

npm install @imgix/ix-player

or

yarn add @imgix/ix-player

Usage

<style>
  ix-player {
    display: block;
    width: 100%;
    margin: 1rem 0 2rem;
    background-color: #000;
    line-height: 0;
  }

  ix-player:not([audio]) {
    aspect-ratio: 16 / 9;
  }
</style>

<ix-player
  src="https://assets.imgix.video/videos/alexa_ski_big_bear_mountain.MOV?fm=hls"
  type="hls"
  gif-preview
  poster-params="video-thumbnail-time=2"
></ix-player>

Docs

API reference lives on Github.

FAQs

Package last updated on 02 Nov 2023

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