- PHP 5.2 or higher
- Tested on eZ Publish 2012.6 and 2012.8 but should work on previous versions.
- CURL support in PHP.
- A Brightcove account with API write access (Video Cloud Pro or Enterprise).
eZ Publish clustering is supported.
-
Copy
ezbrightcove
into 'extension' directory. -
Enable
ezbrightcove
in settings/override/site.ini.append.php:ActiveExtensions[]=ezbrightcove
-
Create settings/override/ezbrightcove.ini.append.php and enter your API details:
<?php /* [BrightcoveSettings] ApiReadToken= ApiWriteToken= */ ?>
You can find these under
Account Settings
->API Management
when logged in to Brightcove's Video Cloud. -
Install the database table:
$ mysql -u<user> -p <database> < extension/ezbrightcove/sql/mysql/schema.sql
-
Regenerate autoloads
$ php bin/php/ezpgenerateautoloads.php -e
-
Clear cache
$ php bin/php/ezcache.php --clear-all
-
Install the required cronjobs. It's suggested to run the frequent cronjobs every 1 to 5 minutes and the infrequent cronjobs can run once a day, but you can adjust this to fit your own needs:
# Convert and update Brigthcove videos - every 3 minutes. 0-59/3 * * * * cd $EZPUBLISHROOT && $PHP runcronjobs.php -q brightcove_frequent 2>&1 # Delete Brightcove videos - once a day at 04:00 AM. 00 04 * * * cd $EZPUBLISHROOT && $PHP runcronjobs.php -q brightcove_infrequent 2>&1
-
In the administration interface create a new class or modify an existing class:
- Add a new attribute of type
Text line
that will hold the name of the video. Make it required. - Add a new attribute of type
Text line
that will hold the description of the video. It's recommended to make it required. - Add a new attribute of type
Brightcove media
- For the options
Where name of the video is stored
andWhere description of the video is stored
use the drop downs to choose theText line
attributes you created in the steps above. - Enter a player id in the
Video player id
field. This can be found when selecting a Video Player underPublishing
in Brightcove's Video Cloud. - Enter a player key in the
Video player key
field. This can found be in the embed code for a player. Select a video player while inPublishing
in Brightcove's Video Cloud and clickGet Code
in the toolbar at the bottom. - Enter the width and height you wish the player to be and optionally a background color for the player.
- Enter the maximum size of any uploaded videos in the
Max video file size
field.
- For the options
- Add a new attribute of type