forked from PierfrancescoSoffritti/android-youtube-player
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
29 lines (24 loc) · 1.16 KB
/
index.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
<html>
<head>
<link rel="stylesheet" href="./css/styles.css">
<script type="text/javascript" src="//www.gstatic.com/cast/sdk/libs/caf_receiver/v3/cast_receiver_framework.js"></script>
<script type="module" src="./js/main.js"></script>
<script>
// hack!
// unfortunately when using a custom channel for communication the Cast Receiver always remains IDLE and disconnects after 5 minutes.
// hopefully the Google Cast team will solve the issue someday.
// https://stackoverflow.com/questions/46673152/google-cast-custom-receiver-timing-out
window._setTimeout = window.setTimeout
window.setTimeout = () => { }
// called automatically by the IFrame APIs
function onYouTubeIframeAPIReady() {
window.main_onYouTubeIframeAPIReady()
}
</script>
<title>chromecast-youtube-player-receiver</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
</head>
<body>
<div id="youTubePlayerDOM"></div>
</body>
</html>