forked from youtube/api-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplayer_control.html
51 lines (44 loc) · 1.76 KB
/
player_control.html
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
<!DOCTYPE html>
<html>
<head>
<!-- page title -->
<title>YouTube in Your App</title>
<!-- Style imports for Material Design Lite -->
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="https://code.getmdl.io/1.1.3/material.indigo-pink.min.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- This code loads the iFrame Player API code asynchronously.-->
<script src = "https://www.youtube.com/iframe_api"></script>
<!-- This is the source of the Javscript for the demo -->
<script src="player_control.js"></script>
</head>
<body>
<!-- Header -->
<div class="mdl-layout mdl-js-layout mdl-layout--fixed-header">
<header class="mdl-layout__header"><div class="mdl-layout__header-row">
<span class="mdl-layout-title">YouTube in Your App</span><div class="mdl-layout-spacer"></div>
<nav class="mdl-navigation">
<a class="mdl-navigation__link" href="index.html">Demo</a>
<a class="mdl-navigation__link" href="#"><b>Player Controls and Data</b></a>
<a class="mdl-navigation__link" href="event_listeners.html">Event Listeners</a>
</nav></div>
</header>
<!-- Page contents -->
<main class="mdl-layout__content"><div class="mdl-grid">
<!-- Player -->
<div class="mdl-cell mdl-cell--8-col">
<!-- The iframe video player will replace this <div> tag. -->
<div id="player"></div>
</div>
<!-- Table for displaying data from a function you will implement -->
<table class="mdl-data-table">
<tr>
<td>Content:</td>
<td>
<span id="content">(None)</span>
</td>
</tr>
</table>
</main></div>
</body>
</html>