Skip to content

Commit fdcb12c

Browse files
authored
Review webRTC sample: easy configuration, cleanup (#307)
* cleanup webRTC sample: remove code for "Hack for Firefox" (https://bugzilla.mozilla.org/show_bug.cgi?id=852665) cause we are support FF52+ now * Add ability set creds and endpoint by search param in URL
1 parent 3ba6269 commit fdcb12c

File tree

9 files changed

+8399
-180
lines changed

9 files changed

+8399
-180
lines changed

gulpfile.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var gulp = require('gulp');
55
var browserify = require('browserify');
66
var source = require('vinyl-source-stream');
77

8-
var connect = require('gulp-connect');
8+
var webserver = require('gulp-webserver');
99
var notify = require('gulp-notify');
1010

1111
var uglify = require('gulp-uglify');
@@ -41,10 +41,14 @@ gulp.task('minify', function () {
4141
});
4242

4343
gulp.task('connect', function() {
44-
connect.server({
45-
port: 3000,
46-
https: true
47-
});
44+
gulp.src('./')
45+
.pipe(webserver({
46+
host: 'localhost',
47+
https: true,
48+
livereload: true,
49+
directoryListing: true,
50+
open: true
51+
}));
4852
});
4953

5054
gulp.task('generate-build_version', function() {

0 commit comments

Comments
 (0)