-
Notifications
You must be signed in to change notification settings - Fork 0
/
frame2.html
70 lines (65 loc) · 2.46 KB
/
frame2.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Farcaster Frame Meta Tags -->
<meta property="fc:frame" content="vNext" />
<meta property="fc:frame:image" content="https://arweave.net/tcgPiqquobs5dHT5x8Szn3miDxbBVOTKkoMY7MwWGEs" />
<meta property="fc:frame:button:1" content="Play Video" />
<meta property="fc:frame:button:1:action" content="play" />
<meta property="og:image" content="https://arweave.net/tcgPiqquobs5dHT5x8Szn3miDxbBVOTKkoMY7MwWGEs" />
<meta property="fc:frame:video" content="https://vod-cdn.lp-playback.studio/raw/jxf4iblf6wlsyor6526t4tcmtmqa/catalyst-vod-com/hls/70ed8k9v4txqzz9q/index.m3u8" />
<meta property="fc:frame:video:type" content="application/x-mpegURL" />
<!-- Video.js CSS -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/video.js/8.10.0/video-js.min.css" rel="stylesheet" />
<style>
body {
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #000;
}
.video-container {
width: 100%;
max-width: 500px;
aspect-ratio: 1/1;
}
.video-js {
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<div class="video-container">
<video
id="farcaster-video"
class="video-js vjs-default-skin"
controls
preload="auto"
poster="https://arweave.net/tcgPiqquobs5dHT5x8Szn3miDxbBVOTKkoMY7MwWGEs"
data-setup='{"fluid": true}'>
<source
src="https://vod-cdn.lp-playback.studio/raw/jxf4iblf6wlsyor6526t4tcmtmqa/catalyst-vod-com/hls/70ed8k9v4txqzz9q/index.m3u8"
type="application/x-mpegURL" />
</video>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/video.js/8.10.0/video.min.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
var player = videojs('farcaster-video', {
responsive: true,
fluid: true
});
// Handle button click event
document.querySelector('[property="fc:frame:button:1"]').addEventListener('click', function() {
player.play();
});
});
</script>
</body>
</html>