Skip to content

Commit

Permalink
Merge pull request #149 from gabe565/fix-reverse-proxy
Browse files Browse the repository at this point in the history
Fix audio not playing over a reverse proxy
  • Loading branch information
greghesp authored Jan 8, 2020
2 parents 44790af + f4b4a1c commit 6acac0d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions client/src/components/PlayButton/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function PlayButton({timestamp, url}) {
return (
<div>
<Sound
url={url ? url : `http://${ip}:${port}/server/audio?v=${timestamp}`}
url={url ? url : `/server/audio?v=${timestamp}`}
onFinishedPlaying={() => PlayStop()}
playStatus={status}
/>
Expand All @@ -48,4 +48,4 @@ function PlayButton({timestamp, url}) {
)
}

export default PlayButton;
export default PlayButton;
2 changes: 1 addition & 1 deletion relay/routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ router.post('/assistant', async(req, res) => {
conversation
.on('audio-data',async(data) => {
fileStream.write(data);
response.audio = `http://${ip.address()}:${port}/server/audio?v=${timestamp}`
response.audio = `/server/audio?v=${timestamp}`
})
.on('response', (text) => {
response.response = text;
Expand Down

0 comments on commit 6acac0d

Please sign in to comment.