2015-10-21 17:24:38 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
2018-05-23 22:32:01 +00:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<meta name="description" content="myMPD - fast and lightweight MPD webclient">
|
|
|
|
<meta name="author" content="mail@jcgames.de">
|
|
|
|
<title>myMPD: Local Player</title>
|
2017-07-31 09:56:02 +00:00
|
|
|
<link href="css/bootstrap.css" rel="stylesheet">
|
|
|
|
<link href="css/mpd.css" rel="stylesheet">
|
2015-10-21 17:24:38 +00:00
|
|
|
<link href="assets/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon">
|
2018-05-23 22:32:01 +00:00
|
|
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
|
|
|
|
<link rel="apple-touch-icon" href="assets/appicon.png"/>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<header>
|
|
|
|
<nav class="navbar navbar-expand navbar-dark fixed-top bg-dark">
|
|
|
|
<a class="navbar-brand" data-toggle="dropdown" href="#">
|
|
|
|
<span class="material-icons header-logo">play_circle_outline</span>myMPD
|
|
|
|
</a>
|
|
|
|
</nav>
|
|
|
|
</header>
|
|
|
|
<main role="main" class="container">
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-header">Local Player</div>
|
|
|
|
<div class="card-body">
|
|
|
|
<audio id="player" preload="none" controls=""></audio>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</main>
|
|
|
|
|
|
|
|
<script src="js/jquery-3.3.1.min.js"></script>
|
2015-12-08 15:42:03 +00:00
|
|
|
<script src="js/jquery.cookie.js"></script>
|
2015-10-21 17:24:38 +00:00
|
|
|
<script type="text/javascript">
|
|
|
|
var mpdstream = $.cookie("mpdstream");
|
|
|
|
player.src = mpdstream;
|
|
|
|
console.log("playing mpd stream: " + player.src);
|
|
|
|
player.load();
|
|
|
|
player.play();
|
2018-05-23 22:32:01 +00:00
|
|
|
</script>
|
2015-10-21 17:24:38 +00:00
|
|
|
</body>
|
|
|
|
</html>
|