Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Drupal 7 Media

You're reading from   Drupal 7 Media Integrate, implement, and extend rich media resources such as images, videos, and audio on your Drupal 7 website with this book and ebook

Arrow left icon
Product type Paperback
Published in Jul 2013
Publisher Packt
ISBN-13 9781849516082
Length 260 pages
Edition 3rd Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Liran Tal Liran Tal
Author Profile Icon Liran Tal
Liran Tal
Arrow right icon
View More author details
Toc

Customizing videos


Being able to add videos to your Drupal site is nice and it really opens up lots of possibilities but this functionality out of the box may not be enough at times.

You may often find yourself required to extend videos with your own custom fields that suit your content type target audience, or if you're using a third-party videos provider you may want to customize the look and feel of the embedded player for that provider.

Customizing video fields

Due to the Media module providing us with file-type specific configuration, we can take advantage of that, and configure each file type's behavior and setup. Between extending its fields, to managing its display mode, we gain pretty much complete control over how these media resources are handled.

The fact that the video field we created is actually a File entity, allows us to extend it with our own fields that will attach to the video that the user provided. In our case, we'd like to extend the default Title, Description, Tags, and...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at ₹800/month. Cancel anytime