Skip to content

Commit

Permalink
Fix bug when there are tracks with and without audio
Browse files Browse the repository at this point in the history
  • Loading branch information
miesgre committed Jun 21, 2019
1 parent ca61dda commit 8ae26f0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ var proxy = httpProxy.createProxyServer({secure:false});

function proxyFunc(req, res, next) {
//proxy.web(req, res, { target: 'http://engage.opencast.org/' });
proxy.web(req, res, { target: 'http://engage.videoapuntes.upv.es:8080/' });
proxy.web(req, res, { target: 'https://engage.videoapuntes.upv.es/' });
//proxy.web(req, res, { target: 'https://opencast-dev.uni-koeln.de/' });
}

app.use(function(req,res,next){
console.log("jaja");
next();
})
app.use('/paella/ui', express.static('build/paella-opencast'));
app.use('/paella/ui', express.static('target/gulp/paella-opencast'));
app.use(proxyFunc);

app.listen(4000, function () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ class OpencastToPaellaConverter {
if ( !(currentStream.sources[videoType]) || !(currentStream.sources[videoType] instanceof Array)){
currentStream.sources[videoType] = [];
}
if (currentTrack.audio) {
currentStream.audioTag = base.dictionary.currentLanguage();
}
currentStream.sources[videoType].push(this.getStreamSourceFromTrack(currentTrack));
}
}
Expand Down

0 comments on commit 8ae26f0

Please sign in to comment.