Download the PHP package martin1982/live-broadcast-sonata-admin-bundle without Composer

On this page you can find all versions of the php package martin1982/live-broadcast-sonata-admin-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package live-broadcast-sonata-admin-bundle

Live Broadcast Sonata Admin Bundle

Build status Latest stable version

License Total downloads

Table of contents

About

The Live Broadcast Bundle will make it possible to plan live video streams to various channels like Twitch, YouTube Live, Facebook Live (referred to as Output or Channels).

As "Input" we support files, URLs or existing RTMP streams.

For more info you can view the latest recorded presentation below, check the demo project at https://github.com/Martin1982/live-broadcast-demo or read on;

IMAGE ALT TEXT

Prerequisites

The Broadcaster needs a few commands;

On Linux:

On Mac:

On Windows:

To test these prerequisites the Symfony command livebroadcaster:test:shell can be used after the installation described below.

Basic installation

This bundle will be made available on Packagist. You can then install it using Composer:

Next, for Symfony \< 4 enable the bundle in the kernel:

Use Doctrine to update your database schema with the broadcasting entities, when upgrading it is recommended to use migrations.

To start the broadcast scheduler you can run the following command:

To make broadcast planning available through an admin interface we've added support for the Sonata Admin bundle.

FFMpeg log directory

To view the output of FFMpeg you need to configure a log directory in your app/config/config.yml.

 live_broadcast:
    ffmpeg:
        log_directory: '%kernel.logs_dir%'

Event loop

You can use this configuration to set the event loop timer:

live_broadcast:
    eventloop:
        timer: 5

Thumbnail setup

Set up the following config for thumbnails:

live_broadcast:
    thumbnail:
        upload_directory: '%kernel.root_dir%/../web/uploads/thumbnails'
        web_path: '/uploads/thumbnails'

Enabling Facebook Live

Create a Facebook app on https://developers.facebook.com with the following permissions:

Edit your app/config/config.yml with the following configuration:

live_broadcast:
    facebook:
        application_id: YourFacebookAppId
        application_secret: YourFacebookAppSecret

Enabling YouTube Live

Login to https://console.developers.google.com/ and enable the 'YouTube Data API v3'.

Setup oAuth Credentials for your server. In case you're using the Sonata Admin from this bundle the redirect URI's path is <your domain>/admin/channel/youtube/oauthprovider

Add the YouTube API info to your config.yml:

live_broadcast:
    youtube:
        client_id: YourGoogleOauthClientId
        client_secret: YourGoogleOauthClientSecret
        redirect_route: admin_martin1982_livebroadcast_channel_abstractchannel_youtubeoauth

Add these lines to your parameters.yml (used for generating a thumbnail URL)

parameters:
    router.request_context.host: broadcast.com
    router.request_context.scheme: https

Add new output platforms

Create a new Channel Entity in Entity/Channel that extends the AbstractChannel (e.g. ChannelNew)

Create a new StreamOutput service in Service/StreamOutput that implements the OutputInterface (e.g. OutputNew)

Configure the service with the output tag in Resources/config/services.yml

live.broadcast.output.new:
    class: Martin1982\LiveBroadcastBundle\Service\StreamOutput\OutputNew
    tags:
        - { name: live.broadcast.output, platform: 'New' }

To add support for Sonata admin; add a new form for the Channel in Admin/ChannelAdmin.php

Next add the subclass for the channelAdmin in Resources/config/admin.yml for

sonata.admin.channel
    calls:
        - [setConfiguredSubclasses, [ { "Name": Martin1982\LiveBroadcastBundle\Entity\Channel\ChannelNew } ] ]

Admin GUI support

This package is created to support Sonata Admin for the Web GUI interface, there are other flavours available from Packagist with no GUI (the base martin1982/live-broadcast-bundle package) and EasyAdmin (martin1982/live-broadcast-easyadmin-bundle).


All versions of live-broadcast-sonata-admin-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
ext-fileinfo Version *
sonata-project/admin-bundle Version ^4.0
sonata-project/doctrine-orm-admin-bundle Version ^4.2
martin1982/live-broadcast-bundle Version ^7.0
symfony/framework-bundle Version ^5.4|^6.0
psr/container Version ^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package martin1982/live-broadcast-sonata-admin-bundle contains the following files

Loading the files please wait ....