aciliainternet / video-provider-bundle
Acilia VideoProvider Bundle
Installs: 5 157
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 26
Forks: 4
Open Issues: 0
Type:bundle
Requires
- php: >=5.3.3
- symfony/framework-bundle: >=2.3.0
README
Installation
Require the bundle in your composer.json file:
$ composer require aciliainternet/video-provider-bundle --no-update
Register the bundle:
// app/AppKernel.php public function registerBundles() { return array( new Acilia\Bundle\VideoProviderBundle\AciliaVideoProviderBundle(), // ... ); }
Install the bundle:
$ composer update aciliainternet/video-provider-bundle
Configuration
Add the initialize arguments of selected provider to your config.
- ThePlatform:
# parameters.yml video_provider_bundle.provider_init_args: user: provider_user password: *****
Configuration (Optional)
Configure video provider:
# parameters.yml video_provider_bundle.provider: ThePlatform
Allowed providers:
- ThePlatform (Default)
Usage
// Get the service $videoProvider = $this->get('acilia.video_provider'); // Call methods not covered by the interface $videoProvider->call('setAccount', ['FIC Fox Play PT LF']); // Get a video by ID $video = $videoProvider->getVideoInfo('22070341236'); // Get videos from feed $videos = $videoProvider->getVideosFromFeed('40xNZWrzTq0v');