Skip to content
This repository was archived by the owner on Jan 31, 2023. It is now read-only.

Commit

Permalink
implementing
Browse files Browse the repository at this point in the history
  • Loading branch information
yusuke84 committed Nov 24, 2014
1 parent 9848814 commit 86e4aa8
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ Icon
.Spotlight-V100
.Trashes

.idea/
.idea/
.iml
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
## Readme
19 changes: 19 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!DOCTYPE html>
<html>
<head lang="ja">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>WebRTC HandsOn</title>
<link rel="stylesheet" href="style.css">
<script type="text/javascript" src="//code.jquery.com/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="https://skyway.io/dist/0.3/peer.js"></script>
<script type="text/javascript" src="script.js"></script>
</head>
<body>
<div class="remoteVideosContainer">
<video id="remoteVideo" autoplay muted="true"></video>
</div>
<div class="myVideContainer">
<video id="myVideo" autoplay muted="true"></video>
</div>
</body>
</html>
3 changes: 3 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/**
* Created by yusuke on 2014/11/25.
*/
40 changes: 40 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
html {
background: #000 no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}

.remoteVideosContainer {
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
z-index: 1;
}

#remoteVideo {
width: 300px;
height: 300px;
}

.myVideContainer {
width: 200px;
height: 200px;
position: absolute;
bottom: 100px;
right: 20px;
border-radius: 100px;
z-index: 2;
overflow: hidden;
}

#myVideo {
position: absolute;
width: 300px;
height: 300px;
top: -50px;
left: -50px;
}

0 comments on commit 86e4aa8

Please sign in to comment.