Download the PHP package anacona16/sonata-media-webcam-provider-bundle without Composer
On this page you can find all versions of the php package anacona16/sonata-media-webcam-provider-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download anacona16/sonata-media-webcam-provider-bundle
More information about anacona16/sonata-media-webcam-provider-bundle
Files in anacona16/sonata-media-webcam-provider-bundle
Package sonata-media-webcam-provider-bundle
Short Description Enable webcam provider for Sonata Media Bundle
License MIT
Homepage https://github.com/anacona16/SonataMediaWebcamProviderBundle
Informations about the package sonata-media-webcam-provider-bundle
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
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:
This command requires you to have Composer installed globally, as explained in the Composer documentation.
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:
Step 3: Prepare the Web Assets of the Bundle
Execute the following command to make assets available in your Symfony application:
Step 4: Add assets to your layout
You need add the assets in your layout e.g. SonataAdminBundle::standard_layout.html.twig
JS
That's it! Now everything is ready to use the Webcam provider.
Using SonataMediaWebcamProviderBundle
After you configure the SonataMediaBundle correctly you must add this lines to your SonataMediaBundle configuration file:
That's all, now you can capture an image from your webcam using SonataMediaBundle.
License
This bundle is published under the MIT License
All versions of sonata-media-webcam-provider-bundle with dependencies
sonata-project/media-bundle Version ^3.0|^4.0
symfony/filesystem Version >=3.0