-
Notifications
You must be signed in to change notification settings - Fork 1
/
audio.php
138 lines (118 loc) · 3.96 KB
/
audio.php
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<?php $v=$_GET['y'];
$vid="http://www.youtube.com/embed/".$v."?rel=0&fs=0&showinfo=0&enablejsapi=1&origin=http://example.com"
?>
<!DOCTYPE html>
<html>
<head>
<title>Groove</title>
<meta charset="utf-8">
<link rel="stylesheet" href="audio_player.css">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/font-awesome.min.css">
<script src="js/jquery.js"></script>
<script src="js/bootstrap.js"></script>
<script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.5.1.js">
</script>
<script src="https://connect.facebook.net/en_US/all.js">
</script>
<script type="text/javascript">
$(document).ready(function () {
$('#shareonfacebook').click(function (e) {
e.preventDefault();
FB.ui(
{
method: 'feed',
name: 'DebugmodeEventPlans',
link: '<?php echo $vid; ?>',
caption: 'This is just for testing Purpose! Kindly Ignore',
description: 'Music Streaming Website!',
message: ''
});
});
});
</script>
</head>
<body>
<div id="sidebar">
<div class="toggle-btn" onclick="toggle()">
<span></span>
<span></span>
<span></span>
</div>
<ul>
<div class="panel panel-heading text-center text-danger" >QUEUE</div>
<?php
include('dbconfig.php');
//get uid
/*$user=$_SESSION["email"];
$u="SELECT * FROM user_details WHERE `email`='$user' ";
$r=mysqli_query($con,$u);
$row=mysqli_fetch_assoc($r);
$uid=$row["uid"];
*/
$uid=1;
$sql="SELECT * FROM `queue` WHERE `u_id`='$uid'";
$r=mysqli_query($con,$sql);
while($row=mysqli_fetch_array($r))
{
echo "<li><i class='fa fa-music'> <a href=''>".$row["song_name"]."</a></i></li>";
}
?>
</ul>
</div>
<div class="col-sm-8 col-md-8 col-md-offset-2">
<div class="player">
<div class="player-head">
<div class="row">
<div class="col-sm-6 col-md-4 col-md-offset-2">
<img src="images/mic.jpg" alt="cover" class="song-cover">
</div>
<div class="col-sm-6 col-md-4 col-md-offset-2">
<div class="song_info">
<ul class="song">
<li><i class="fa fa-music"></i> <a href="artist.php">ARTIST <i class="fa fa-caret-right"></i></a></li> <!--directs to artist page-->
<li><i class="fa fa-music"></i> <a href="album.php">ALBUM <i class="fa fa-caret-right"></i></a></li><!--directs to album page-->
<li><i class="fa fa-music"></i> <a target="_blank" href="http://azlyrics.com">GET LYRICS <i class="fa fa-caret-right"></i></a></li><!--directs to get lyrics-->
<li><i class="fa fa-eye"></i> <a href="video.php">WATCH VIDEO <i class="fa fa-caret-right"></i></a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="player-body">
<div class="album-info">
<span class="album-title">
Album name
</span>
<span class="song-title">
song name
</span>
<span class="player-controls">
<a href="main.php"><i class="fa fa-home"></i></a>
<i class="fa fa-heart animated-hover"></i> <!-- loved song-->
<i class="fa fa-plus"></i> <!-- add to playlist-->
<button id="shareonfacebook" >ShareOnFaceBook</button>
<script>
FB.init({
appId : '270535600061970'
});
</script>
</span>
</div>
</div>
<iframe id="player" type="text/html" width="840" height="30"
src="<?php echo $vid ?>"
frameborder="0"></iframe>
</div>
</div>
</div>
<!-- video link -->
<script>
function toggle()
{
document.getElementById("sidebar").addClass('active');
}
</script
</body>
</head>
</html>