StanzaJS Discussion - 2020-05-05


  1. marc0s hey Lance, just woke up. Thanks for looking into it. I'll check later the browser's ws traffic to double check what's actually stanza sending out. But that prosody filter function looks like a candidate
  2. marc0s stanza is some 12.x clone I had lying around, so pretty recent
  3. marc0s indeed, stanza is sending the proper `<open...>` it's prosody logging the already transformed stanza
  4. marc0s :)
  5. Flavius Andrei hey, Lance. any chance i can check the incoming jingle session to see the track it contains (audio or video)?
  6. Lance one sec, i'll check
  7. Lance i _know_ i've done this before
  8. Lance but wtf, i'm not seeing any easy flag to check
  9. Lance gimme a bit, will get that added
  10. Lance ok, in 12.8.2, there are includesAudio and includesVideo flags on MediaSessions
  11. Lance if you have to use older versions, you can overwrite client.jingle.prepareSession. The second argument to it is the full session-initiate request
  12. Lance request.jingle.contents.filter(content => content.application.media === 'audio') should do it
  13. Lance (that method is intended for overwriting, so that's not a problem)