PHPackages                             bitbirddev/twig-components-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. bitbirddev/twig-components-bundle

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

bitbirddev/twig-components-bundle
=================================

2.04(6mo ago)12.0kMITPHPPHP &gt;=8.3

Since Jan 22Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/bitbirddev/twig-components-bundle)[ Packagist](https://packagist.org/packages/bitbirddev/twig-components-bundle)[ RSS](/packages/bitbirddev-twig-components-bundle/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependencies (5)Versions (20)Used By (0)

Twig Videoplayer-Component with optional Usercentrics PrivacyWall (to be used with Pimcore)
===========================================================================================

[](#twig-videoplayer-component-with-optional-usercentrics-privacywall-to-be-used-with-pimcore)

What is this?
-------------

[](#what-is-this)

This Package provides a MediaPlayer Twig Component especially designed to be used with Pimcore CMS.

Use this component and throw something at it. It will handle the most common video types like Youtube, Vimeo and Facebook.

```
Pimcore VideoEditable

Pimcore VideoDataType

Pimcore Asset

Pimcore Asset ID

Facebook Video

Youtube URL

Vimeo URL

Source Array

Your Custom DataObject (see below for VideoHandler Example)

```

Depends on
----------

[](#depends-on)

[@bitbirddev/web-components](https://github.com/bitbirddev/web-components/tree/main)

[vidstack/player](https://github.com/vidstack/player)

Installation
------------

[](#installation)

`composer require bitbirddev/twig-components-bundle`

Sample Usage
------------

[](#sample-usage)

```

```

Usage without Consent-Wall
--------------------------

[](#usage-without-consent-wall)

Option 1: return an empty array in the getConsents() method of your custom handler

Option 2: set the `consents` attribute to an empty array in the component

```

```

VideoHandler Example
--------------------

[](#videohandler-example)

```
