| 1 |
********************************************************************
|
| 2 |
D R U P A L M O D U L E
|
| 3 |
********************************************************************
|
| 4 |
Name: Media Actions Module
|
| 5 |
Author: Patrick Fournier <patrick at whiskyechobravo dot com>
|
| 6 |
Drupal: 6
|
| 7 |
********************************************************************
|
| 8 |
PREREQUISITES:
|
| 9 |
* Trigger module (included in core)
|
| 10 |
* Video Field (provided by Media Field module)
|
| 11 |
* Embedded Video Field (provided by Embedded Media Field module)
|
| 12 |
|
| 13 |
DESCRIPTION:
|
| 14 |
|
| 15 |
This module defines actions related to media files management
|
| 16 |
for the Drupal core action function. Actions provided by this module
|
| 17 |
currently handle video storage on blip.tv; you are welcome to add
|
| 18 |
similar actions to this module.
|
| 19 |
|
| 20 |
********************************************************************
|
| 21 |
INSTALLATION:
|
| 22 |
|
| 23 |
1. Place the entire media_actions directory into your Drupal modules
|
| 24 |
directory (normally sites/all/modules).
|
| 25 |
|
| 26 |
2. Enable the media_action module by navigating to:
|
| 27 |
|
| 28 |
Administer > Site building > Modules
|
| 29 |
|
| 30 |
3. If you want anyone besides the administrative user to be able
|
| 31 |
to configure actions (usually a bad idea), they must be given
|
| 32 |
the "administer actions" access permission:
|
| 33 |
|
| 34 |
Administer > User management > Permissions
|
| 35 |
|
| 36 |
When the module is enabled and the user has the "administer
|
| 37 |
actions" permission, an "actions" menu should appear under
|
| 38 |
Administer > Site configuration in the menu system.
|
| 39 |
|
| 40 |
********************************************************************
|
| 41 |
USE:
|
| 42 |
1. Create a CCK content type with two fields:
|
| 43 |
a. A Video Field (provided by the CCK mediafield module),
|
| 44 |
used for video uploads.
|
| 45 |
b. An Embedded Video Field (provided by Embedded Media Field
|
| 46 |
module), used to display the embedded blip.tv video.
|
| 47 |
|
| 48 |
2. Configure the Media Actions at
|
| 49 |
Administer > Site configuration > Actions.
|
| 50 |
a. Select the action(s) under "Make a new advanced action
|
| 51 |
available" andclick Create.
|
| 52 |
b. Fill in the required information.
|
| 53 |
- Enter your Video Field (upload) name in the Local Video Field
|
| 54 |
Name section.
|
| 55 |
- Enter your Embedded Video Field (display) name in the Remote
|
| 56 |
Video Field Name section.
|
| 57 |
|
| 58 |
When creating a node, the user should enter a filename in the Video
|
| 59 |
Field. The file will be uploaded as usual to your Drupal server, then
|
| 60 |
the media action will upload this file to blip.tv, delete the local
|
| 61 |
file and modify the Embedded Video Field to point to the newly created
|
| 62 |
blip.tv video.
|