Skip to content

Commit

Permalink
Recording is disabled in the Scalable-Broadcast demos.
Browse files Browse the repository at this point in the history
You can re-enable by setting “enableRecordings=true” in the HTML.
  • Loading branch information
muaz-khan committed Apr 17, 2016
1 parent bd304f5 commit 0b808c3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Scalable-Broadcast.js
Expand Up @@ -214,5 +214,5 @@ function getFirstAvailableBraodcater(broadcastId, maxRelayLimitPerUser) {
function consoleLog() {
// return; // comment this line for development testings

console.log(arguments);
// console.log(arguments);
}
7 changes: 7 additions & 0 deletions demos/Scalable-Broadcast.html
Expand Up @@ -125,6 +125,9 @@ <h1><a href="https://github.com/muaz-khan/WebRTC-Scalable-Broadcast">WebRTC Scal

<script src="https://cdn.webrtc-experiment.com/RecordRTC.js"></script>
<script>
// recording is disabled because it is resulting for browser-crash
var enableRecordings = false;

var connection = new RTCMultiConnection(null, {
useDefaultDevices: true // if we don't need to force selection of specific devices
});
Expand Down Expand Up @@ -359,6 +362,10 @@ <h1><a href="https://github.com/muaz-khan/WebRTC-Scalable-Broadcast">WebRTC Scal
var allRecordedBlobs = [];

function repeatedlyRecordStream(stream) {
if(!enableRecordings) {
return;
}

connection.currentRecorder = RecordRTC(stream, {
type: 'video'
});
Expand Down
7 changes: 7 additions & 0 deletions demos/Scalable-Screen-Broadcast.html
Expand Up @@ -128,6 +128,9 @@ <h1><a href="https://github.com/muaz-khan/WebRTC-Scalable-Broadcast">WebRTC Scal

<script src="https://cdn.webrtc-experiment.com/RecordRTC.js"></script>
<script>
// recording is disabled because it is resulting for browser-crash
var enableRecordings = false;

var connection = new RTCMultiConnection(null, {
useDefaultDevices: true // if we don't need to force selection of specific devices
});
Expand Down Expand Up @@ -361,6 +364,10 @@ <h1><a href="https://github.com/muaz-khan/WebRTC-Scalable-Broadcast">WebRTC Scal
var allRecordedBlobs = [];

function repeatedlyRecordStream(stream) {
if(!enableRecordings) {
return;
}

connection.currentRecorder = RecordRTC(stream, {
type: 'video'
});
Expand Down

0 comments on commit 0b808c3

Please sign in to comment.