Skip to content

Commit acc4761

Browse files
committed
Updated readme
1 parent 4f5bed1 commit acc4761

File tree

5 files changed

+11
-2
lines changed

5 files changed

+11
-2
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ WebRTC is widely adopted by popular browsers such as Chrome and Firefox, but the
2424

2525
## Part 1: A Simple WebRTC Video Chat
2626

27-
Time to begin! First I will show you how to make the bare minimum WebRTC video chat. Then, in Part 2 we will make use of a simple wrapper library to create a full featured video chatting application.
27+
Time to begin! First I will show you how to make the bare minimum WebRTC video chat. Then, in Part 2 we will make use of a simple wrapper library to create a full featured video chatting application. The live demo of what you will be making in the next 2.5 minutes [can be found here](http://kevingleason.me/SimpleRTC/minivid.html)!
2828

2929
### A Note on Testing and Debugging
3030

@@ -121,6 +121,8 @@ function makeCall(form){
121121

122122
If `window.phone` is undefined, we cannot place a call. This will happen if the user did not log in first. If it is, we use the `phone.dial` function which takes a number and an optional list of servers to place a call.
123123

124+
<img src="img/chat.png" alt="Chatting">
125+
124126
And that is it! You now have a simple WebRTC chatting app, fire up your python server and go test your app on localhost!
125127

126128
### Want to learn more?

img/chat.png

339 KB
Loading

img/minivid_html.png

11.6 KB
Loading

minivid.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
<input type="text" name="number" placeholder="Enter user to dial!" />
2626
<input type="submit" value="Call"/>
2727
</form>
28+
29+
<p><b>To Use:</b></p>
30+
<p>Type a username and click Log in. If input turns green you are ready to receive/place a call.</p>
31+
<p>In a separate browser window, log in with a different username, and place a call to the first.</p>
2832

2933
</body>
3034

@@ -34,7 +38,6 @@
3438
<script type="text/javascript">
3539

3640
var video_out = document.getElementById("vid-box");
37-
var hasRTC = window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
3841

3942
function login(form) {
4043
var phone = window.phone = PHONE({

minivid2.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@
4646
</div>
4747
<div id="logs"></div>
4848

49+
<p><b>To Use:</b></p>
50+
<p>Type a username and click Log in. If input turns green you are ready to receive/place a call.</p>
51+
<p>In a separate browser window, log in with a different username, and place a call to the first.</p>
52+
4953
<!-- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -->
5054
<!-- WebRTC Peer Connections -->
5155
<!-- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -->

0 commit comments

Comments
 (0)