Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added (temporary) link to WebRTC codelab #804

Merged
merged 3 commits into from
Jun 13, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@
<body>
<div id="container">

<div class="highlight">
<p>New codelab: <a href="https://codelabs.developers.google.com/codelabs/webrtc-web">Realtime communication with WebRTC</a></p>
</div>

<h1>WebRTC samples</h1>

<section>
Expand Down Expand Up @@ -167,12 +171,13 @@ <h3 id="videoChat">Video chat</h3>
</div>

<script src="src/js/lib/ga.js"></script>

<script type="application/javascript">
var isSecureOrigin = location.protocol === 'https:' ||
location.host === 'localhost';
location.host === 'localhost';
if (!isSecureOrigin) {
console.log('These demos must be run from a secure origin. \n' +
'Changing protocol to HTTPS');
'Changing protocol to HTTPS');
location.protocol = 'HTTPS';
}
</script>
Expand Down
4 changes: 4 additions & 0 deletions src/content/devices/input-output/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@
<body>
<div id="container">

<div class="highlight">
<p>New codelab: <a href="https://codelabs.developers.google.com/codelabs/webrtc-web">Realtime communication with WebRTC</a></p>
</div>

<h1><a href="//webrtc.github.io/samples/" title="WebRTC samples homepage">WebRTC samples</a><span>Select sources &amp; outputs</span></h1>

<p>Get available audio, video sources and audio output devices<b>*</b> from <code>mediaDevices.enumerateDevices()</code> then set the source for <code>getUserMedia()</code> using a <code>deviceId</code> constraint.</p>
Expand Down
4 changes: 4 additions & 0 deletions src/content/getusermedia/gum/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@

<div id="container">

<div class="highlight">
<p>New codelab: <a href="https://codelabs.developers.google.com/codelabs/webrtc-web">Realtime communication with WebRTC</a></p>
</div>

<h1><a href="//webrtc.github.io/samples/" title="WebRTC samples homepage">WebRTC samples</a> <span>getUserMedia</span></h1>

<video id="gum-local" autoplay></video>
Expand Down
4 changes: 4 additions & 0 deletions src/content/peerconnection/pc1/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@

<div id="container">

<div class="highlight">
<p>New codelab: <a href="https://codelabs.developers.google.com/codelabs/webrtc-web">Realtime communication with WebRTC</a></p>
</div>

<h1><a href="//webrtc.github.io/samples/" title="WebRTC samples homepage">WebRTC samples</a> <span>Peer connection</span></h1>

<video id="localVideo" autoplay muted></video>
Expand Down
11 changes: 11 additions & 0 deletions src/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
display: none;
}

.highlight {
background-color: #eee;
font-size: 1.2em;
margin: 0 0 30px 0;
padding: 0.2em 1.5em;
}
.warning {
color: red;
font-weight: 400;
Expand Down Expand Up @@ -224,6 +230,11 @@ video {
}

@media screen and (max-width: 650px) {
.highlight {
font-size: 1em;
margin: 0 0 20px 0;
padding: 0.2em 1em;
}
h1 {
font-size: 24px;
}
Expand Down