drupal 7 - media modul (version 2.x-dev)

18
Media Modul in Drupal 7 - Version 2.x (DEV) Steffen Rühlman, undpaul GmbH

Upload: steffen-ruehlmann

Post on 30-Nov-2014

3.289 views

Category:

Technology


5 download

DESCRIPTION

Vortrag vom 25.02.2012 beim Drupal Camp Essen

TRANSCRIPT

Page 1: Drupal 7 - Media Modul (Version 2.x-dev)

Media Modul in Drupal 7 - Version 2.x (DEV)Steffen Rühlman, undpaul GmbH

Page 2: Drupal 7 - Media Modul (Version 2.x-dev)

Media Handling in Drupal 6/7

● upload-module (core) - node attachment

● Medien in Feldern○ FileField○ ImageField○ Embedded Media Field○ VideoField○ AudioField

Page 3: Drupal 7 - Media Modul (Version 2.x-dev)

Media Handling in Drupal 6/7

● Management von Dateien○ IMCE○ WebFM (D6)○ FileField + FileField Sources○ image FUpload

● Einbettung von Dateien

○ WYSIWYG + Pfade händisch○ WYSIWYG + IMCE (Bridge)○ emfield - Einbindung diverser Provider (youtube,

archive.org, flickr ... )

Page 4: Drupal 7 - Media Modul (Version 2.x-dev)

funktioniert alles - gemeinsame Basis fehlt

Page 5: Drupal 7 - Media Modul (Version 2.x-dev)

media-7.x-1.x-devmedia_gallery

2011 - MediaSprint Chicago

media-7.x-1.x-rc3 media-7.x-2.x-dev

http://drupal.org/project/media

Page 6: Drupal 7 - Media Modul (Version 2.x-dev)

Drupal 7 - what's up ?

● Streamwrapper für Dateizugriff○ public://○ private://○ temporary://

● Entity - System

○ Fields in Core○ File-Entity, User-Entity (core), Product-Entity

(commerce) ...

● Imagefield / Imagecache in Core - Image-Styles

Page 7: Drupal 7 - Media Modul (Version 2.x-dev)

streamwrapper - wtf ?

● streamwrapper != file● fester Bestandteil von PHP 5.2 ● Beschreibung, wie Zugriff auf Dateien erfolgt

○ FTP / HTTP / file://

● Wordpress hat sie auch

● Drupal ○ public://file.jpg - sites/default/files/file.jpg○ private://file.jpg - sites/system/files/file.jpg (geschütztes

Verzeichnis außerhalb www-root)● eigene Wrapper möglich

○ youtube:// - Einbindung von youtube Videos○ s3:// - Einbindung von amazon s3 Inhalten○ flickr:// - Einbindung von flickr Bildern / Inhalten

Page 8: Drupal 7 - Media Modul (Version 2.x-dev)

streamwrapper - Backend

systemweites Handling auf Basis des Name-Spaces

namespace://filepath/name

Page 9: Drupal 7 - Media Modul (Version 2.x-dev)

File Entity - fieldable files

● Hinzufügen beliebiger Felder zu Files - CCK für Files

● Entity-Types media-Modul:Application, Audio, Image, Text, Video, Other

Page 10: Drupal 7 - Media Modul (Version 2.x-dev)

File Entity - Formatter / Displays

● Displays für Felder○ Default / Link / Preview etc.

● Displays für Files

○ Erweiterbarkeit(HTML5 Player, PDF-Viewer)

○ pro Field-Display eigene File-Displays

Page 11: Drupal 7 - Media Modul (Version 2.x-dev)

media als Drupal Asset - Management

● zentrale Speicherung der Mediadaten (nicht unbedingt der Dateien) - auch von Remote Ressources

● Vereinheitlichung der Oberfläche / Abläufe○ Views-Integration○ WYSIWYG-Integration○ bessere Usability

● Erweiterbarkeit über API

Page 12: Drupal 7 - Media Modul (Version 2.x-dev)

media - ecosystem

Page 13: Drupal 7 - Media Modul (Version 2.x-dev)

Demo

Page 14: Drupal 7 - Media Modul (Version 2.x-dev)

contrib modules

● media_browser_plus

● eigene Filter● media basket ● Download gewählter

Dateien

http://drupal.org/project/media_browser_plus

Page 15: Drupal 7 - Media Modul (Version 2.x-dev)

contrib modules

● media_derivatives● File Processing / Conversion● supports Triggers / "Rules" / Plugins / Engines● Introduction

○ http://janezurevc.name/screencast-derivatives-api-intro-gsoc-2011● automatical convert files for HTML5-Usage

○ http://janezurevc.name/screencast-html5-video-support-multiple-files-using-media-derivatives-api

● remote_stream_wrapper○ Einbettung externer Dateien als Media-Asset

(Orginalbilder verbleiben bspw. auf flickr)● media_feeds● media_update ● media_translation● u.v.m. http://groups.drupal.org/node/168009

Page 16: Drupal 7 - Media Modul (Version 2.x-dev)

and so on...● Roadmap - http://drupal.org/node/1291276● Issues - http://drupal.org/project/issues/media ● Media Development Profile - http://drupal.

org/project/media_dev ● IRC - #drupal-media● Sprint in Denver - http://groups.drupal.org/node/181069

Page 17: Drupal 7 - Media Modul (Version 2.x-dev)

Usage

Page 18: Drupal 7 - Media Modul (Version 2.x-dev)

Danke !  

noch Fragen ?

@_SteffenRwww.port11.de

www.hopper-intermedia.de