Skip to content

Commit bd6369e

Browse files
committed
cine.io prototype
1 parent fae57e1 commit bd6369e

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

cine.io/player.html

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<html>
2+
<head>
3+
<title>Cine.io Player</title>
4+
<script src='//cdn.cine.io/cineio.js'>
5+
</head>
6+
<body>
7+
<div id="player-example">
8+
</div>
9+
<script>
10+
CineIO.init('19b899e9401d8c2198de7f56f6d066b5');
11+
var streamId = '5418ab2b5217670800fb65c3'
12+
, domId = 'player-example';
13+
14+
CineIO.play(streamId, domId, function(error, player) {
15+
console.log("player ready", error, player);
16+
});
17+
</script>
18+
</body>
19+
</html>

cine.io/publisher.html

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<html>
2+
<head>
3+
<title>Cine.io Publisher</title>
4+
<script src='//cdn.cine.io/cineio.js'>
5+
</head>
6+
<body>
7+
<div id="publisher-example">
8+
</div>
9+
<script>
10+
CineIO.init('19b899e9401d8c2198de7f56f6d066b5');
11+
var streamId = '5418ab2b5217670800fb65c3'
12+
, password = 'fans7'
13+
, domId = 'publisher-example';
14+
15+
var publisher = CineIO.publish(
16+
streamId, password, domId
17+
);
18+
19+
publisher.start();
20+
</script>
21+
</body>
22+
</html>

0 commit comments

Comments
 (0)