Open foxy82 opened 2 years ago
Thanks @foxy82 I had the same issue with Alexa. For anyone else with the same issue, here's some code to strip the mentioned auto data from the sdp:
let sdpStr = event.directive.payload.offer.value
sdpStr = sdpStr.replace('a=group:BUNDLE audio0 video0', 'a=group:BUNDLE video0')
sdpStr = sdpStr.replace(/m=audio.*?a=fingerprint:sha-256.*?$/gsm, '')
sdpStr = sdpStr.replace(/\n{2,}/, '\n')+"\r\n"
const sdpOfferBase64 = Buffer.from(sdpStr, 'utf-8').toString('base64')
Everything is working perfectly inside Alexa now.
Hi,
Thanks ever so much for writing this.
I'm working on a proof of concept to display a generic rtsp webcam on an Alexa Echo Show as if it were a doorbell.
The Alexa offer has an audio component as the Echo Show allows audio between the Echo Show and the "Doorbell"
However if I pass that offer on directly to RTSPtoWeb I get back
Is there any way we can just return an answer without audio?
At the moment I'm stripping out the audio part before sending it on to RTSPtoWeb which is working (although only intermittently - I don't know if that is related or a different issue).
Example Alexa Offer:
To get it to work I have to strip to remove audio0 from the group and all the audio section like so: