Skip to content

Instantly share code, notes, and snippets.

@j0sh
Last active January 28, 2016 22:18
Show Gist options
  • Select an option

  • Save j0sh/6c7d21ae90e1c8a7bd4d to your computer and use it in GitHub Desktop.

Select an option

Save j0sh/6c7d21ae90e1c8a7bd4d to your computer and use it in GitHub Desktop.
fix typo in FSRTC javascript
From 4bc402f7fc7362b1ccbb41e26a99a6234d35733c Mon Sep 17 00:00:00 2001
From: Josh Allmann <joshua.allmann@gmail.com>
Date: Thu, 28 Jan 2016 22:15:59 +0000
Subject: [PATCH] Fix a typo causing an exception in fsrtc.
---
html5/verto/js/src/jquery.FSRTC.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/html5/verto/js/src/jquery.FSRTC.js b/html5/verto/js/src/jquery.FSRTC.js
index 6025e08..38ea522 100644
--- a/html5/verto/js/src/jquery.FSRTC.js
+++ b/html5/verto/js/src/jquery.FSRTC.js
@@ -342,8 +342,8 @@
if(typeof self.options.localVideoStream.stop == 'function') {
self.options.localVideoStream.stop();
} else {
- if (self.localVideoStream.active){
- var tracks = self.localVideoStream.getTracks();
+ if (self.options.localVideoStream.active){
+ var tracks = self.options.localVideoStream.getTracks();
console.error(tracks);
tracks.forEach(function(track, index){
console.log(track);
--
2.1.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment