-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
26 lines (26 loc) · 1.66 KB
/
index.html
File metadata and controls
26 lines (26 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<html>
<head>
<title>Audio-Angular</title>
<script src="dist/lib/angular-1.2.27.min.js"></script>
<script src="dist/audio-angular.js"></script>
<link rel="stylesheet" href="dist/audio-angular.css">
<!-- <script type="text/javascript" src ="jquery-1.11.1.min.js"></script> -->
</head>
<body ng-app="Ng-Audio">
<h1>Simple Angular Audio Widget</h1>
<p>This is an audio widget designed to play a short interview. Multiple interviews can be embedded very easily into a single page by creating discrete controlers. You can see the player in action by viewing <a href="http://chronicle.com/article/The-Rich-Mans-Dropout-Club/151703/">The Rich Man's Dropout Club</a>, a story I produced for The Chronicle of Higher Education.</p>
<aside ng-controller="InterviewCtrl as ctrl" id="ng-audio-interview-1" class="ng-audio-player" >
<img src="//placehold.it/600x400&text=Interview Subject" />
<h4>An Interview With {{subject}}</h4>
<div class="toggle-container">
<div ng-click="toggle()" class="ng-audio-toggle" ng-class="{play: !playing, pause: playing}"></div>
<div class="time-container"><p>{{currentTime | numToSecs}} / {{duration | numToSecs}}</p></div>
</div>
<audio id="ng-audio-interview-1-audio" class="ng-audio" preload="auto">
<source src="//s3.amazonaws.com/chronicle-studio/thiel/dist/audio/daniel.mp3" type="audio/mp3" />
<source src="//s3.amazonaws.com/chronicle-studio/thiel/dist/audio/daniel.wav" type="audio/wav" />
<source src="//s3.amazonaws.com/chronicle-studio/thiel/dist/audio/daniel.ogg" type="audio/ogg" />
</audio>
</aside>
</body>
</html>