Skip to content

Commit

Permalink
Fixed publishing in Spine (lynckia#1002)
Browse files Browse the repository at this point in the history
  • Loading branch information
lodoyun authored Aug 10, 2017
1 parent 2f1bde3 commit fdfc3e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions erizo_controller/erizoClient/src/Room.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ const Room = (altIo, altConnection, specInput) => {
limitMaxVideoBW: spec.maxVideoBW,
iceServers: that.iceServers };
if (isRemote) {
connectionOpts.audio = connectionOpts.audio && stream.hasAudio();
connectionOpts.video = connectionOpts.video && stream.hasVideo();
connectionOpts.audio = connectionOpts.audio && connectionOpts.audio !== undefined;
connectionOpts.video = connectionOpts.video && connectionOpts.audio !== undefined;
} else {
connectionOpts.simulcast = options.simulcast;
}
Expand Down
2 changes: 1 addition & 1 deletion spine/simpleNativeConnection.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ exports.ErizoSimpleNativeConnection = function (spec, callback, error){
subscribeToStreams(roomEvent.streams);
if (spec.publishConfig){
log.info('Will publish with config', spec.publishConfig);
localStream = Erizo.Stream(spec.publishConfig);
localStream = Erizo.Stream(fakeConnection, spec.publishConfig);
room.publish(localStream, spec.publishConfig, function(id, message){
if (id === undefined){
log.error('ERROR when publishing', message);
Expand Down

0 comments on commit fdfc3e1

Please sign in to comment.