Embed Streams web component
The Streams web component serves as a wrapper for our Player component and can be found under the "Embed" tab inside the details page of a Stream.
Benefits of our web component
Our web component ensures that we automatically load the correct Player config, Analytics config and Manifest url for you, so you don't have to worry about it. So if you would re-encode your asset, our web component would poll for the latest updates and apply the new changes. Same for any Player configuration changes.
It doesn't require much to embed our web component, it can be implemented easily with a single line of code. Before that ensure to import our Bitmovin library.
<script type="module" src="https://streams.bitmovin.com/js/component.js"></script>
After that, you can integrate our component by inserting the following tag with your StreamId, which can be found at the top inside a Stream detail page.
<bitmovin-stream stream-id="random-stream-id" />
With every Stream, we autogenerate the code snippet for you so that you can just easily copy & paste the above mentioned steps.
The web component exposes properties that allow for some customization.
|stream-id||empty||Your StreamId. This property is required|
|autoPlay||false||Whether playback should start automatically or not. Note that most browsers block autoplay if muted is not set to true|
|muted||false||Whether the sound is muted on startup or not|
|poster||value||The URL to a preview image displayed until the video starts.|
Updated 23 days ago