Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
Move 'manual' folder from the testrtc to the test-pages repo.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehlemur-zz committed Feb 16, 2017
1 parent c9021d1 commit 9a2dc6b
Show file tree
Hide file tree
Showing 28 changed files with 2,966 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
WebRTC welcomes patches/pulls for features and bug fixes.

For contributors external to Google, follow the instructions given in the [Google Individual Contributor License Agreement](https://cla.developers.google.com/about/google-individual).

In all cases, contributors must sign a contributor license agreement before a contribution can be accepted. Please complete the agreement for an [individual](https://developers.google.com/open-source/cla/individual) or a [corporation](https://developers.google.com/open-source/cla/corporate) as appropriate.

103 changes: 103 additions & 0 deletions css/landing_page.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
/*
* Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree.
*/
a {
color: #6fa8dc;
font-weight: 300;
text-decoration: none;
}

a:hover {
color: #3d85c6;
text-decoration: underline;
}

a#viewSource {
display: block;
margin: 1.3em 0 0 0;
border-top: 1px solid #999;
padding: 1em 0 0 0;
}

body {
font-family: 'Roboto', sans-serif;
margin: 0;
padding: 1em;
word-break: break-word;
font-weight: 300;
}

div#container {
margin: 0 auto 0 auto;
max-width: 40em;
padding: 1em 1.5em 1.3em 1.5em;
}

h1 {
border-bottom: 1px solid #ccc;
font-family: 'Roboto', sans-serif;
font-weight: 500;
margin: 0 0 0.8em 0;
padding: 0 0 0.2em 0;
}

h2 {
color: #444;
font-size: 1em;
font-weight: 500;
line-height: 1.2em;
margin: 0 0 0.8em 0;
}

h3 {
border-top: 1px solid #eee;
color: #666;
font-size: 0.9em;
font-weight: 500;
margin: 20px 0 10px 0;
padding: 10px 0 0 0;
white-space: nowrap;
}

p {
color: #444;
font-weight: 300;
line-height: 1.6em;
}

section p:last-of-type {
margin: 0;
}

section {
border-bottom: 1px solid #eee;
margin: 0 0 30px 0;
padding: 0 0 20px 0;
}

section:last-of-type {
border-bottom: none;
padding: 0 0 1em 0;
}

@media screen and (max-width: 650px) {
h1 {
font-size: 24px;
}
}

@media screen and (max-width: 550px) {
h1 {
font-size: 22px;
}
}

@media screen and (max-width: 450px) {
h1 {
font-size: 20px;
}
}
Binary file added images/favicon.ico
Binary file not shown.
87 changes: 87 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
<!DOCTYPE html>
<!--
* Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree.
-->
<html>
<head>

<meta charset="utf-8">
<meta name="description" content="WebRTC Javascript test pages">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, maximum-scale=1">
<meta itemprop="description" content="Client-side WebRTC test pages">
<meta itemprop="image" content="/images/webrtc-icon-192x192.png">
<meta itemprop="name" content="WebRTC Javascript test pages">
<meta name="mobile-web-app-capable" content="yes">
<meta id="theme-color" name="theme-color" content="#ffffff">

<base target="_blank">

<title>WebRTC test pages</title>

<link rel="icon" sizes="192x192" href="images/favicon.ico">
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="css/landing_page.css" />
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-48530561-3', 'auto');
ga('send', 'pageview');
</script>
</head>
<body>
<div id="container">

<h1>WebRTC test pages</h1>

<section>

<p>This is a collection of WebRTC test pages.</p>

<p>Patches and issues welcome! See
<a href="https://github.com/webrtc/test-pages/blob/gh-pages/CONTRIBUTING.md">CONTRIBUTING.md</a>
for instructions. The <a href="https://bit.ly/webrtcdevguide">Developer's Guide</a>
for this repo has more information about code style, structure and validation.
</p>

</section>

<section>

<p><a href="src/audio-and-video/">Audio and Video streams</a></p>

<p><a href="src/iframe-apprtc/">Iframe apprtc</a></p>

<p><a href="src/iframe-video/">Iframe video</a></p>

<p><a href="src/multiple-audio/">Multiple audio streams</a></p>

<p><a href="src/multiple-peerconnections/">Multiple peerconnections</a></p>

<p><a href="src/multiple-video/">Multiple video devices</a></p>

<p><a href="src/multiple-video-devices/">Multiple video streams</a></p>

<p><a href="src/peer2peer/">Peer2peer</a></p>

<p><a href="src/peer2peer-iframe/">Peer2peer iframe</a></p>

<p><a href="src/peer2peer-video/">Peer2peer from video</a></p>

<p><a href="src/single-audio/">Single audio stream</a></p>

<p><a href="src/single-video/">Single video stream</a></p>

</section>

<a href="//github.com/webrtc/testrtc/tree/master/src/manual" title="View the repository" id="viewSource">github.com/webrtc/test-pages/tree/gh-pages</a>

</div>
</body>
</html>
45 changes: 45 additions & 0 deletions src/audio-and-video/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<!DOCTYPE html>
<!--
Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
Use of this source code is governed by a BSD-style license
that can be found in the LICENSE file in the root of the source
tree. An additional intellectual property rights grant can be found
in the file PATENTS. All contributing project authors may
be found in the AUTHORS file in the root of the source tree.
-->
<html>
<head>
<title>Single Local Preview (Video and Audio)</title>
<meta http-equiv="X-UA-Compatible" content="chrome=1"/>
<!-- Load the polyfill to switch-hit between Chrome and Firefox -->
<script src="https://webrtc.github.io/adapter/adapter-latest.js"></script>
<script type="text/javascript">
function requestVideoAndAudio() {
navigator.getUserMedia({video: true, audio: true},
getUserMediaOkCallback, getUserMediaFailedCallback);
}

function getUserMediaFailedCallback(error) {
alert("User media request denied with error code " + error.code);
}

function getUserMediaOkCallback(stream) {
document.getElementById("view1").srcObject = stream;
document.getElementById("audio1").srcObject = stream;
}
</script>
</head>
<body onload="requestVideoAndAudio();">
<table border="0">
<tr>
<td>Local Preview</td>
</tr>
<tr>
<td><video width="320" height="240" id="view1"
autoplay="autoplay"></video></td>
<td><audio id="audio1" autoplay="autoplay"></audio></td>
</tr>
</table>
</body>
</html>
Loading

0 comments on commit 9a2dc6b

Please sign in to comment.