O'Reilly logo

Mastering AngularJS Directives by Josh Kurz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Introduction to the media player directive

There are many different types of video players in the market today, which come in many different shapes and sizes. We are going to create one video player that will work with multiple libraries—One Media Player to Rule Them All. The directive has a strong focus on templates rather than on exposing a public API. This will allow the video player directive to remain as flexible as possible.

The templates for the video player can vary greatly and can range from simple to very complex. The point of creating the directive is to allow any video template to use any video player library or a pure HTML5 video player template that uses no third-party library to control its functionality.

Requirements for the media ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required