Skip to content

Commit

Permalink
ADD 0.1.0-RC6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Stabenow committed Mar 11, 2016
1 parent 96cbd05 commit 74bfafb
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## Changes from 0.1.0-RC6 to 0.1.0-RC6.1

* fixed external streaming with RTSP over TCP input option

## Changes from 0.1.0-RC5 to 0.1.0-RC6

* updated NPM/Bower packages
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Restreamer",
"version": "0.1.0-RC6",
"version": "0.1.0-RC6.1",
"license": "Apache-2.0",
"dependencies": {
"bootstrap": "3.3.6",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Restreamer",
"version": "0.1.0-RC6",
"version": "0.1.0-RC6.1",
"description": "Allows you to do h.264 real-time video streaming on your website without a streaming provider",
"author": "datarhei.org",
"repository": {
Expand Down
10 changes: 6 additions & 4 deletions src/classes/Restreamer.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,11 @@ class Restreamer {
return Restreamer.appendOutputOptionFromConfig(ffmpegCommand);
}

static applyOptions (ffmpegCommand) {
if (Restreamer.data.options.rtspTcp && Restreamer.data.addresses.srcAddress.indexOf('rtsp') === 0) {
ffmpegCommand.inputOptions('-rtsp_transport tcp');
static applyOptions (ffmpegCommand, streamType) {
if (streamType === 'repeatToLocalNginx') {
if (Restreamer.data.options.rtspTcp && Restreamer.data.addresses.srcAddress.indexOf('rtsp') === 0) {
ffmpegCommand.inputOptions('-rtsp_transport tcp');
}
}
}

Expand Down Expand Up @@ -311,7 +313,7 @@ class Restreamer {
Restreamer.updateProgressOnGui();
command.removeAllListeners('progress');
};
Restreamer.applyOptions(command);
Restreamer.applyOptions(command, streamType);
command
// stream started
.on('start', (commandLine) => {
Expand Down

0 comments on commit 74bfafb

Please sign in to comment.