PHPackages                             anacona16/sonata-media-webcam-provider-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. [Image &amp; Media](/categories/media)
4. /
5. anacona16/sonata-media-webcam-provider-bundle

ActiveSymfony-bundle[Image &amp; Media](/categories/media)

anacona16/sonata-media-webcam-provider-bundle
=============================================

Enable webcam provider for Sonata Media Bundle

v3.4(4y ago)12531[1 issues](https://github.com/anacona16/SonataMediaWebcamProviderBundle/issues)MITJavaScriptPHP &gt;=5.3.0

Since Feb 19Pushed 4y ago1 watchersCompare

[ Source](https://github.com/anacona16/SonataMediaWebcamProviderBundle)[ Packagist](https://packagist.org/packages/anacona16/sonata-media-webcam-provider-bundle)[ Docs](https://github.com/anacona16/SonataMediaWebcamProviderBundle)[ RSS](/packages/anacona16-sonata-media-webcam-provider-bundle/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (2)Versions (20)Used By (0)

SonataMediaWebcamProvider
=========================

[](#sonatamediawebcamprovider)

SonataMediaWebcamProvider add a new provider to SonataMediaBundle, it lets you capture an image from your webcam.

**Requirements**

- Symfony 3.4+ applications.
- SonataMediaBundle.

Please install each bundle following their instructions.

**How it works?**

This bundle replaces the binaryContent field. Video HTML5 element uses canvas element to get an image using base64 encoding, then a temporary file is created, then the Sonata ImageProvider class uses and processes it.

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

[](#installation)

### Step 1: Download the Bundle

[](#step-1-download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest version of this bundle:

```
$ composer require anacona16/sonata-media-webcam-provider-bundle
```

This command requires you to have Composer installed globally, as explained in the [Composer documentation](https://getcomposer.org/doc/00-intro.md).

### Step 2: Enable the Bundle

[](#step-2-enable-the-bundle)

If you are using Symfony Flex the bundle will be enabled automatically, if not enable the bundle by adding the following line in the `app/AppKernel.php` file of your Symfony application:

```
