# \#code-example

**URL:** https://community.bitmovin.com/tag/code-example/118.md

[Latest](https://community.bitmovin.com/latest.md) · [Categories](https://community.bitmovin.com/categories.md) · [Tags](https://community.bitmovin.com/tags.md)

---

## [\[React\] Code samples for integrating Bitmovin web player into React applications](https://community.bitmovin.com/t/react-code-samples-for-integrating-bitmovin-web-player-into-react-applications/1447)

<div class="topic-metadata">

**Author:** [@Kishore](https://community.bitmovin.com/u/Kishore)\
**Replies:** 0\
**Last updated:** [October 27, 2022, 11:07am UTC](https://community.bitmovin.com/t/react-code-samples-for-integrating-bitmovin-web-player-into-react-applications/1447 "2022-10-27T11:07:17Z")

</div>

buildPlayerWithBundledNpmClassBased: Using the Bitmovin Monolithic NPM package on a class based React component. buildPlayerWithBundledNpmFunctionBased: Using the Bitmovin Monolithic NPM package on a function based …

---

## [How can I play a HLS manifest with both Widevine & Fairplay on Bitmovin Web Chrome](https://community.bitmovin.com/t/how-can-i-play-a-hls-manifest-with-both-widevine-fairplay-on-bitmovin-web-chrome/1831)

<div class="topic-metadata">

**Author:** [@seven](https://community.bitmovin.com/u/seven)\
**Replies:** 2\
**Last updated:** [August 28, 2023, 4:50pm UTC](https://community.bitmovin.com/t/how-can-i-play-a-hls-manifest-with-both-widevine-fairplay-on-bitmovin-web-chrome/1831 "2023-08-28T16:50:44Z")

</div>

Tested Fairplay DRM in Safari; It was played normally. But Widevine DRM HLS in Chrome browser did not play with 1211 error code. How can I play a HLS manifest with BOTH FairPlay and Widevine on Chrome?

---

## [It didn't exist and we created it, now it exists and we collaborate with it](https://community.bitmovin.com/t/it-didnt-exist-and-we-created-it-now-it-exists-and-we-collaborate-with-it/1772)

<div class="topic-metadata">

**Author:** [@jonathanm](https://community.bitmovin.com/u/jonathanm)\
**Replies:** 2\
**Last updated:** [March 8, 2023, 12:13pm UTC](https://community.bitmovin.com/t/it-didnt-exist-and-we-created-it-now-it-exists-and-we-collaborate-with-it/1772 "2023-03-08T12:13:35Z")

</div>

Good humbly I introduce myself, I’m another developer, I’m part of Takeoffmedia, and I’ll give a little context to those who want to read me. A couple of years ago we were presented with a mobile project which would use…

---

## [Sample Smart TV UIs for Bitmovin Player](https://community.bitmovin.com/t/sample-smart-tv-uis-for-bitmovin-player/1687)

<div class="topic-metadata">

**Author:** [@jacob.arends](https://community.bitmovin.com/u/jacob.arends)\
**Replies:** 0\
**Last updated:** [February 8, 2023, 5:14pm UTC](https://community.bitmovin.com/t/sample-smart-tv-uis-for-bitmovin-player/1687 "2023-02-08T17:14:18Z")

</div>

New sample UIs for Smart TV are now available as part of our open-source repository bitmovin-player-web-samples You’ll find samples showcasing how to style and recreate a similar player interface like Netflix, Di…

---

## [Advertising with bitmovin in ps5](https://community.bitmovin.com/t/advertising-with-bitmovin-in-ps5/1613)

<div class="topic-metadata">

**Author:** [@nestor](https://community.bitmovin.com/u/nestor)\
**Replies:** 4\
**Last updated:** [January 12, 2023, 7:22pm UTC](https://community.bitmovin.com/t/advertising-with-bitmovin-in-ps5/1613 "2023-01-12T19:22:52Z")

</div>

Hello. Is there any references to example code involving playstation5 and advertising with ads using bitmovin? I have some issues present while trying to implement advertising in ps5, migrating from IMA. Thanks in ad…

---

## [SharePlay integration on Player iOS SDK](https://community.bitmovin.com/t/shareplay-integration-on-player-ios-sdk/1618)

<div class="topic-metadata">

**Author:** [@jacob.arends](https://community.bitmovin.com/u/jacob.arends)\
**Replies:** 0\
**Last updated:** [January 11, 2023, 2:43pm UTC](https://community.bitmovin.com/t/shareplay-integration-on-player-ios-sdk/1618 "2023-01-11T14:43:02Z")

</div>

Image credit: Apple SharePlay support was added in Bitmovin Player iOS SDK 3.31.0 and can be used on iOS / tvOS 15.0+. See our feature documentation for how to implement SharePlay in your iOS app or check out our sam…

---

## [Modifying MP4 segments Bitmovin Player Client-Side](https://community.bitmovin.com/t/modifying-mp4-segments-bitmovin-player-client-side/1393)

<div class="topic-metadata">

**Author:** [@seven](https://community.bitmovin.com/u/seven)\
**Replies:** 0\
**Last updated:** [October 13, 2022, 6:50am UTC](https://community.bitmovin.com/t/modifying-mp4-segments-bitmovin-player-client-side/1393 "2022-10-13T06:50:23Z")

</div>

Background You might notice your Stream plays on 80% of devices but fails on 20% of them. i.e typical 80-20 rule. Particularly on Live Streams. In Bitmovin we’ve seen older devices making the bulk of this 20% devices. F…

---

## [Ad Events not being triggered](https://community.bitmovin.com/t/ad-events-not-being-triggered/1285)

<div class="topic-metadata">

**Author:** [@c-toney.mathew](https://community.bitmovin.com/u/c-toney.mathew)\
**Replies:** 3\
**Last updated:** [September 21, 2022, 7:48am UTC](https://community.bitmovin.com/t/ad-events-not-being-triggered/1285 "2022-09-21T07:48:08Z")

</div>

I have written a sample web app, that loads the LIVE dash url and licence key required to play the content. I am listening for the ad events from the player, but I am not getting any events while an ad is been played. p…

---

## [Working with thumbnail when seeking in Bitmovin Player](https://community.bitmovin.com/t/working-with-thumbnail-when-seeking-in-bitmovin-player/1240)

<div class="topic-metadata">

**Author:** [@hardknockrabbit](https://community.bitmovin.com/u/hardknockrabbit)\
**Replies:** 4\
**Last updated:** [September 11, 2022, 7:45pm UTC](https://community.bitmovin.com/t/working-with-thumbnail-when-seeking-in-bitmovin-player/1240 "2022-09-11T19:45:42Z")

</div>

Good day, Is there a working example (Android and iOS) on how to show a thumbnail when seeking.

---

## [Adding SCTE-35 for Live Encoding](https://community.bitmovin.com/t/adding-scte-35-for-live-encoding/1053)

<div class="topic-metadata">

**Author:** [@seven](https://community.bitmovin.com/u/seven)\
**Replies:** 0\
**Last updated:** [July 24, 2022, 7:31pm UTC](https://community.bitmovin.com/t/adding-scte-35-for-live-encoding/1053 "2022-07-24T19:31:46Z")

</div>

How to Add SCTE 35 to your live stream. Step One - Basic RTMP Live Familiarise yourself on creating a RTMP Live Encoding Step Two - Updating the Manifest Generator Now that you know RTMP Live encoding we can update the …

---

## [Immediately Hide Player Controls using Keyboard Shortcut](https://community.bitmovin.com/t/immediately-hide-player-controls-using-keyboard-shortcut/1049)

<div class="topic-metadata">

**Author:** [@seven](https://community.bitmovin.com/u/seven)\
**Replies:** 0\
**Last updated:** [July 22, 2022, 9:49pm UTC](https://community.bitmovin.com/t/immediately-hide-player-controls-using-keyboard-shortcut/1049 "2022-07-22T21:49:12Z")

</div>

If your requirements are similar to hide player controls via a keyboard short cut BUT display the control bar when mouse moves this code snippet can help you get started document.addEventListener('keyup', event =\>…

---

## [CI/CD - Continuous Integration & Deployment Example - StreamApp Tests](https://community.bitmovin.com/t/ci-cd-continuous-integration-deployment-example-streamapp-tests/869)

<div class="topic-metadata">

**Author:** [@manfred.runkel](https://community.bitmovin.com/u/manfred.runkel)\
**Replies:** 0\
**Last updated:** [June 14, 2022, 5:53pm UTC](https://community.bitmovin.com/t/ci-cd-continuous-integration-deployment-example-streamapp-tests/869 "2022-06-14T17:53:44Z")

</div>

During the sprint, you ensured the new header for the StreamApp application resulted in UI improvements. After launching the application in production, you were asked to double-check some of the configs that affected the…

---

## [Multi-Codec Playback on Web](https://community.bitmovin.com/t/multi-codec-playback-on-web/976)

<div class="topic-metadata">

**Author:** [@seven](https://community.bitmovin.com/u/seven)\
**Replies:** 0\
**Last updated:** [July 5, 2022, 4:05pm UTC](https://community.bitmovin.com/t/multi-codec-playback-on-web/976 "2022-07-05T16:05:51Z")

</div>

Why this Post Customers are increasingly looking to include more codecs in the same manifest. This is allows them to efficiently supports a wider range of playback devices i.e if a device can decode a higher efficiency…

---

## [Encoding-DRM Tutorial By Use Case](https://community.bitmovin.com/t/encoding-drm-tutorial-by-use-case/974)

<div class="topic-metadata">

**Author:** [@seven](https://community.bitmovin.com/u/seven)\
**Replies:** 0\
**Last updated:** [July 5, 2022, 2:43am UTC](https://community.bitmovin.com/t/encoding-drm-tutorial-by-use-case/974 "2022-07-05T02:43:53Z")

</div>

Why This Post To quickly find your relevant DRM integration tutorial. First - Questions to Self To help formulate you DRM requirements some questions you can ask yourself What are the end-user-devices I want to reach/…

---

## [Code Snippets to integrate Per-Title encodings with DRM](https://community.bitmovin.com/t/code-snippets-to-integrate-per-title-encodings-with-drm/972)

<div class="topic-metadata">

**Author:** [@seven](https://community.bitmovin.com/u/seven)\
**Replies:** 0\
**Last updated:** [July 4, 2022, 5:42pm UTC](https://community.bitmovin.com/t/code-snippets-to-integrate-per-title-encodings-with-drm/972 "2022-07-04T17:42:30Z")

</div>

Objective Provide code snippets to integrate Per-Title encoding with Multi-DRM. This stems from the FAQ question - Can I use Per-Title encodings with DRM solutions like Widevine, PlayReady, or Fairplay? This post assume…

---

## [Code Sample on Integrating Bitmovin Encoder with PallyCon Multi-DRM](https://community.bitmovin.com/t/code-sample-on-integrating-bitmovin-encoder-with-pallycon-multi-drm/961)

<div class="topic-metadata">

**Author:** [@seven](https://community.bitmovin.com/u/seven)\
**Replies:** 0\
**Last updated:** [July 1, 2022, 9:19am UTC](https://community.bitmovin.com/t/code-sample-on-integrating-bitmovin-encoder-with-pallycon-multi-drm/961 "2022-07-01T09:19:38Z")

</div>

Overview This tutorial walks through integrating Bitmovin CENC Encoding with PallyCon CPIX DRM in TWO simple steps. :raised\_hands: For a full working sample refer to the Appendix Pre-requisites CONTENT-ID ; your scri…

---

## [A simple trick for how to reuse and update Encoding resources](https://community.bitmovin.com/t/a-simple-trick-for-how-to-reuse-and-update-encoding-resources/902)

<div class="topic-metadata">

**Author:** [@anon65450478](https://community.bitmovin.com/u/anon65450478)\
**Replies:** 0\
**Last updated:** [June 20, 2022, 1:29pm UTC](https://community.bitmovin.com/t/a-simple-trick-for-how-to-reuse-and-update-encoding-resources/902 "2022-06-20T13:29:48Z")

</div>

If you use the Bitmovin API (and SDKs), you will quickly notice something critical: although our solution is managed through a REST API, there are very few resources that can be updated (whether with an HTTP PUT or POST …

---

## [Code Sample for Content Proposals on tvOS / Apple TV (+ Swag Offer!)](https://community.bitmovin.com/t/code-sample-for-content-proposals-on-tvos-apple-tv-swag-offer/207)

<div class="topic-metadata">

**Author:** [@JamesVarndell](https://community.bitmovin.com/u/JamesVarndell)\
**Replies:** 2\
**Last updated:** [May 23, 2022, 5:14pm UTC](https://community.bitmovin.com/t/code-sample-for-content-proposals-on-tvos-apple-tv-swag-offer/207 "2022-05-23T17:14:44Z")

</div>

When streaming serialized or episodic shows, Content Proposals are a great way to inform viewers about what your app is going to play next, and to give viewers the choice to continue watching the next episode, or navigat…
