forked from mozilla/popcorn-js
/
popcorn.googlefeed.html
executable file
·63 lines (58 loc) · 1.69 KB
/
popcorn.googlefeed.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
<!DOCTYPE html>
<html>
<head>
<title>Popcorn Google Feed Plug-in Demo</title>
<script src="../../popcorn.js"></script>
<script src="popcorn.googlefeed.js"></script>
<script>
document.addEventListener( "DOMContentLoaded", function() {
var p = Popcorn( "#video" )
.volume( 0 )
.play()
.googlefeed({
start: 0,
end: 15,
target: "feed",
url: "http://zenit.senecac.on.ca/~chris.tyler/planet/rss20.xml",
title: "Planet Feed",
orientation: "Vertical"
})
.googlefeed({
start: 5,
end: 20,
target: "feed1",
url: "http://blog.pikimal.com/geek/feed/",
title: "pikiGeek",
orientation: "Horizontal"
});
}, false);
</script>
</head>
<body>
<h1 id="qunit-header">Popcorn Google Feed Plug-in Demo</h1>
<p>A Blog feed of Seneca's Planet Feed will be displayed from 0 seconds to 15 seconds</p>
<p> A Blog feed of pikiGeek's feed will be displayed from 5 seconds to 20 seconds</p>
<div>
<video id="video"
controls
width="250px"
poster="../../test/poster.png">
<source id="mp4"
src="../../test/trailer.mp4"
type='video/mp4; codecs="avc1, mp4a"'>
<source id="ogv"
src="../../test/trailer.ogv"
type='video/ogg; codecs="theora, vorbis"'>
<p>Your user agent does not support the HTML5 Video element.</p>
</video>
</div>
<div style="width:1000px">
<div id="feed" style="position:relative;float:left;width:400px;height:600px">
<p>Vertical Feed:</p>
</div>
<div id="feed1" style="position:relative;float:left;width:600px;height:200px">
<p>Horizontal Feed:</p>
</div>
</div>
</body>
</html>