This is an origami component to help create styled audio players for IG pages. This is currently experimental.
Install the module:
bower install --S g-audio
Load the JS:
const GAudio = require('g-audio'); GAudio.init();
Load the CSS:
Copy markup from one of the following demos:
To create an audio player inline with text:
<span class="g-audio"> Bring to the table win-win survival <audio controls> <source src="demo.mp3" type="audio/mpeg"> </audio> </span>
To create an audio player between paragraphs of text (in development):
<span class="g-audio g-audio--block"> Podcasting operational change management <audio controls> <source src="demo2.mp3" type="audio/mpeg"> </audio> </span>
Copyright (c) 2016 Financial Times Ltd. All rights reserved.
This software is published under the MIT licence.