Caution: This documentation is for eZ Publish legacy, from version 3.x to 6.x.
For 5.x documentation covering Platform see eZ Documentation Center, for difference between legacy and Platform see 5.x Architecture overview.

Media

Summary

Stores a media file (Flash/QT/Real/etc.).

Properties

NameInternal nameSearchableInformation collector
Media ezmedia No. No.

Description

This datatype allows the storage and playback of a video file. It is capable of handling Apple QuickTime, Macromedia Flash, Microsoft Windows Media and Real Media files. The maximum allowed file size is determined by the "Max file size" class attribute edit parameter and the "upload_max_filesize" directive in the main PHP configuration file ("php.ini"). The following screenshot shows the class attribute edit interface for this datatype.

Class attribute edit interface for the "Media" datatype.

Class attribute edit interface for the "Media" datatype.

Media player type

The "Media player type" parameter controls the way the video file will be played back on the client side. The following options are available:

  • Flash
  • QuickTime
  • Real player
  • Windows media player

Max file size

The "Max file size" parameter makes it possible to set the highest size (in megabytes) that the system will allow. By default, this parameters is zero, which means that eZ Publish will not do any size checking when files are uploaded. In the example above, the "Max file size" parameter is set to 32 MB, which means that the object edit interface will not allow the upload of files that are larger than 32 megabytes. However, if the value of the "upload_max_filesize" PHP setting is lower than 32 megabytes, the underlying system will cancel the upload.

Object attribute edit interface

The object attribute edit interface for the "Media" datatype depends on the selected "Media player type" (in class edit mode). The following screenshots show the different object attribute edit interfaces for the supported media types.

 

Object attribute edit interface for the "Media" datatype (Flash).

Object attribute edit interface for the "Media" datatype (Flash).


Object attribute edit interface for the "Media" datatype (QuickTime).

Object attribute edit interface for the "Media" datatype (QuickTime).


Object attribute edit interface for the "Media" datatype (Real Media).

Object attribute edit interface for the "Media" datatype (Real Media).


Object attribute edit interface for the "Media" datatype (Windows media).

Object attribute edit interface for the "Media" datatype (Windows media).

 

Storage

Files that have been uploaded through the "Media" datatype are stored in the same way as files that are uploaded using the "File" datatype. However, the system keeps track of the media files using the "ezmedia" table instead of the "ezbinaryfile" table.

Raw output

The ".content" of an ezcontentobjectattribute object using this datatype returns an ezmedia object.

Balazs Halasy (21/02/2005 2:40 pm)

Balazs Halasy (06/06/2005 11:55 am)


Comments

There are no comments.