Media Bundle¶
The SonataMediaBundle is a media library based on a dedicated provider
which handles different type of media: files, videos or images.
Each type is managed by a provider service which is in charge of:
- retrieving media metadata
- generating media thumbnail
- tweaking the edit form
- rendering the media
Each media can be linked to a context. A context can be news,
user or any name you want. A context allows you to group a set of pictures
together. As requirements can be different for each context, a context
is defined by a set of formats and a set of providers.
As the infrastructure is not standard, the MediaBundle abstracts the
filesystem layer and the cdn layer.
Reference Guide¶
- 1. Installation
- 2. Configuration
- 3. Helpers
- 4. Creating a Media Provider: A Vimeo Provider
- 5. Media Context
- 6. Usage
- 7. Form Type
- 8. Security
- 9. Command Line Tools
- 10. Advanced Configuration
- 11. Amazon S3
- 12. Messenger
- 13. Extra
- 14. Sonata Notification Bundle Integration
- 15. Liip Imagine Bundle Integration
- 16. CKEditor Integration
- 17. Sonata Multiupload Bundle
- 18. API
- 19. Troubleshooting
Available services¶
Providers
sonata.media.provider.image: Imagesonata.media.provider.file: Filesonata.media.provider.dailymotion: Dailymotionsonata.media.provider.vimeo: Vimeosonata.media.provider.youtube: YoutubeFilesystem
sonata.media.filesystem.local: The local filesystem (default)sonata.media.filesystem.ftp: FTPsonata.media.filesystem.s3: Amazon S3sonata.media.filesystem.replicate: Replicate file to a primary and a secondaryCDN
sonata.media.cdn.server: The local http server (default)sonata.media.cdn.panther: Panther Portalsonata.media.cdn.fallback: Fallback, use the fallback (the http server) if the Media is not yet flushed on the CDN
More services will be available in the future depending on your contributions! :)