2017 © Pedro Peláez
 

symfony-bundle sonata-media-webcam-provider-bundle

Enable webcam provider for Sonata Media Bundle

image

anacona16/sonata-media-webcam-provider-bundle

Enable webcam provider for Sonata Media Bundle

  • Monday, December 4, 2017
  • by anacona16
  • Repository
  • 1 Watchers
  • 1 Stars
  • 89 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 13 Versions
  • 10 % Grown

The README.md

SonataMediaWebcamProvider

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

Requirements, (*2)

  • Symfony 3.4+ applications.
  • SonataMediaBundle.

Please install each bundle following their instructions., (*3)

How it works?, (*4)

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., (*5)

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:, (*6)

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

This command requires you to have Composer installed globally, as explained in the Composer documentation., (*7)

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:, (*8)

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Anacona16\Bundle\SonataMediaWebcamProviderBundle\SonataMediaWebcamProviderBundle(),
        );
    }

    // ...
}

Step 3: Prepare the Web Assets of the Bundle

Execute the following command to make assets available in your Symfony application:, (*9)

php app/console assets:install --symlink

Step 4: Add assets to your layout

You need add the assets in your layout e.g. SonataAdminBundle::standard_layout.html.twig, (*10)

JS, (*11)

<script src="{{ asset('bundles/sonatamediawebcamprovider/sonata-media-webcam-provider.min.js') }}" type="text/javascript"></script>

That's it! Now everything is ready to use the Webcam provider., (*12)

Using SonataMediaWebcamProviderBundle

After you configure the SonataMediaBundle correctly you must add this lines to your SonataMediaBundle configuration file:, (*13)

sonata_media:
    contexts:
        default:
            providers:
                # ...
                - sonata.media.provider.webcam

That's all, now you can capture an image from your webcam using SonataMediaBundle., (*14)


License

This bundle is published under the MIT License, (*15)

The Versions

04/12 2017

dev-master

9999999-dev https://github.com/anacona16/SonataMediaWebcamProviderBundle

Enable webcam provider for Sonata Media Bundle

  Sources   Download

MIT

The Requires

 

by Ramiro Anacona Meneses

image sonatamediabundle webcam

04/12 2017

v2.5

2.5.0.0 https://github.com/anacona16/SonataMediaWebcamProviderBundle

Enable webcam provider for Sonata Media Bundle

  Sources   Download

MIT

The Requires

 

by Ramiro Anacona Meneses

image sonatamediabundle webcam

06/09 2017

v2.4

2.4.0.0 https://github.com/anacona16/SonataMediaWebcamProviderBundle

Enable webcam provider for Sonata Media Bundle

  Sources   Download

MIT

The Requires

 

by Ramiro Anacona Meneses

image sonatamediabundle webcam

06/09 2017

v2.3

2.3.0.0 https://github.com/anacona16/SonataMediaWebcamProviderBundle

Enable webcam provider for Sonata Media Bundle

  Sources   Download

MIT

The Requires

 

by Ramiro Anacona Meneses

image sonatamediabundle webcam

05/09 2017

v2.2

2.2.0.0 https://github.com/anacona16/SonataMediaWebcamProviderBundle

Enable webcam provider for Sonata Media Bundle

  Sources   Download

MIT

The Requires

 

by Ramiro Anacona Meneses

image sonatamediabundle webcam

04/09 2017

v2.1

2.1.0.0 https://github.com/anacona16/SonataMediaWebcamProviderBundle

Enable webcam provider for Sonata Media Bundle

  Sources   Download

MIT

The Requires

 

by Ramiro Anacona Meneses

image sonatamediabundle webcam

05/08 2017

v2.0

2.0.0.0 https://github.com/anacona16/SonataMediaWebcamProviderBundle

Enable webcam provider for Sonata Media Bundle

  Sources   Download

MIT

The Requires

 

by Ramiro Anacona Meneses

image sonatamediabundle webcam

05/08 2017

1.0.x-dev

1.0.9999999.9999999-dev https://github.com/anacona16/SonataMediaWebcamProviderBundle

Enable webcam provider for Sonata Media Bundle

  Sources   Download

MIT

The Requires

 

by Ramiro Anacona Meneses

image sonatamediabundle webcam

05/08 2017

v1.4

1.4.0.0 https://github.com/anacona16/SonataMediaWebcamProviderBundle

Enable webcam provider for Sonata Media Bundle

  Sources   Download

MIT

The Requires

 

by Ramiro Anacona Meneses

image sonatamediabundle webcam

19/04 2017

v1.3

1.3.0.0 https://github.com/anacona16/SonataMediaWebcamProviderBundle

Enable webcam provider for Sonata Media Bundle

  Sources   Download

MIT

The Requires

 

by Ramiro Anacona Meneses

image sonatamediabundle webcam

18/04 2017

v1.2

1.2.0.0 https://github.com/anacona16/SonataMediaWebcamProviderBundle

Enable webcam provider for Sonata Media Bundle

  Sources   Download

MIT

The Requires

 

by Ramiro Anacona Meneses

image sonatamediabundle webcam

18/04 2017

v1.1

1.1.0.0 https://github.com/anacona16/SonataMediaWebcamProviderBundle

Enable webcam provider for Sonata Media Bundle

  Sources   Download

MIT

The Requires

 

by Ramiro Anacona Meneses

image sonatamediabundle webcam

19/02 2016

v1.0

1.0.0.0 https://github.com/anacona16/SonataMediaWebcamProviderBundle

Enable webcam provider for Sonata Media Bundle

  Sources   Download

MIT

The Requires

 

by Ramiro Anacona Meneses

image sonatamediabundle webcam