-
Notifications
You must be signed in to change notification settings - Fork 105
Expand file tree
/
Copy pathindex.html
More file actions
95 lines (83 loc) · 3.31 KB
/
index.html
File metadata and controls
95 lines (83 loc) · 3.31 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!DOCTYPE html>
<html>
<head>
<title>AnguarJs SoundManager2</title>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" />
<link rel="stylesheet" href="style.css" />
</head>
<body ng-app="myApp">
<div class="container" ng-controller="MainCtrl">
<div class="row">
<div class="col-md-12">
<h5>Songs</h5>
<ul>
<li ng-repeat="song in songs">
<button music-player="play" add-song="song">{{ song.title }}</button>
<button music-player add-song="song">+</button>
</li>
</ul>
<button play-all="songs">Play all</button>
<button play-all="songs" data-play="false">Add all</button>
</div>
</div>
<hr />
<div class="row">
<div class="col-md-12">
<!-- init soundManager2 player -->
<sound-manager></sound-manager>
<p>
Currently Playing: {{ currentPlaying.title }} by {{ currentPlaying.artist }} ({{ currentPostion }} / {{ currentDuration }})
</p>
<div class="seekBase" seek-track>
<div class="seekLoad" ng-style="{width : ( progress + '%' ) }"></div>
</div>
<br />
<button play-music>Play</button>
-
<button pause-music>Pause</button>
-
<button stop-music>Stop</button>
-
<button repeat-music>Repeat ({{ repeat }})</button>
-
<button shuffle-music>Shuffle ({{ shuffle }})</button>
-
<button shuffle-all-music>Play Shuffle ({{ shuffle }})</button>
-
<button play-pause-toggle data-play="Play!" data-pause="Pause!">Play Toggle</button>
Is Playing: {{ isPlaying }}
<br/>
<br/>Volume: {{ volume }} -
<button music-volume data-type="increase">+</button>
-
<button music-volume data-type="decrease">-</button>
-
<button mute-music>Mute ({{ mute }})</button>
<br/>
<br/>
<button prev-track>Prev Track</button>
-
<button next-track>Next Track</button>
-
<button clear-playlist>Clear Playlist</button>
<br/>
<br/>
<h5>Playlist</h5>
<ul>
<li ng-repeat="song in playlist">
<a play-from-playlist="song">{{ song.title }}</a>
-
<a remove-from-playlist="song" data-index="{{$index}}">
<small>(remove)</small>
</a>
<span ng-if="currentPlaying.id == song.id"> - (current)</span>
</li>
</ul>
</div>
</div>
</div>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.19/angular.min.js"></script>
<script src="../dist/angular-soundmanager2.js"></script>
<script src="app.js"></script>
</body>
</html>