1.18.0 • Published 4 months ago

bitmovin-streams v1.18.0

Weekly downloads
-
License
-
Repository
-
Last release
4 months ago

Bitmovin Stream Web Component

The Streams web component serves as a wrapper for the Bitmovin Player and provides a simple way to integrate Bitmovin Streams into your website.

Usage

  • Add the dependency to your package.json and import the web component into your project.
  • Once its imported, you can use the custom tag <bitmovin-stream stream-id="your-stream-id" /> to add the web component to your HTML. (Replace your-stream-id with the ID of your stream)
  // Import the web component
  import { BitmovinStream } from 'bitmovin-streams'

  // Add the component to your HTML
  <bitmovin-stream stream-id="your-stream-id" />

Usage with React

If you want to use the web component in a React project, you need to do the following changes to your application:

  • Add the @lit/react dependency to your project.
  • Use the createComponent function from @lit/react to create a React component from the web component. Here is an example how to do that:
  // Import dependencies
  import {createComponent} from '@lit/react';
  import {BitmovinStream} from 'bitmovin-streams';
  import React from 'react';

  // Create React component
  const BitmovinStreamReact = createComponent<BitmovinStream>({
    tagName: 'bitmovin-stream',
    elementClass: BitmovinStream,
    react: React,
  });

  // Use React component
  <BitmovinStreamReact stream-id={"your-stream-id"} />

Known limitations

  • The web component relies on the window global to be present, therefore it can't be used in server side rendering environments.

Support and Documentation

If you want to know more about Streams visit the official documentation

In case you encounter any issues, have questions or improvement ideas, visit our community and let us know

1.18.0

4 months ago

1.15.0

9 months ago

1.14.1

10 months ago

1.14.0

10 months ago

1.13.1

10 months ago

1.17.1

5 months ago

1.17.0

6 months ago

1.16.1

7 months ago

1.14.3

10 months ago

1.16.0

8 months ago

1.14.2

10 months ago

1.13.0

10 months ago

1.12.0

11 months ago

1.9.1

12 months ago

1.9.0

12 months ago

1.11.0

11 months ago

1.10.0

12 months ago

1.8.2

12 months ago

1.8.1

1 year ago

1.8.0

1 year ago

1.7.0

1 year ago

1.6.0

1 year ago