Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
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

Enabling audio play


Our first task will be to enable audio uploads with audio play capabilities. Formerly, this was accomplished using a dedicated audio field type which third-party modules provided to extend content types using the Content Construction Kit (CCK) framework.

We've already been using the Media module for pictures and videos and we can make use of it to provide our audio content as well. Doing so will allow us to manage all of our media resources in the same place, using the media browser. Keeping in mind that the Media module is only about setting the grounds for managing media resources, we will need to enable a media player that will be able to stream those audio formats. Luckily, both MediaElement and MediaFront provide this support using HTML5's <audio> tag.

Adding a new content type

Tracks will be the name of our new content type, for users to be able to upload their songs, vocals, instrumental music tracks, or audio content in general. Once uploaded, they will be...

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 $19.99/month. Cancel anytime
Banner background image