modified lib-jitsi-meet dev repo
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

WebAudioUtils.js 418B

1234567891011121314
  1. /**
  2. * Adapter that creates AudioContext objects depending on the browser.
  3. *
  4. * @returns {AudioContext} - Return a new AudioContext or undefined if the browser does not support it.
  5. */
  6. export function createAudioContext(options) {
  7. const AudioContextImpl = window.AudioContext || window.webkitAudioContext;
  8. if (!AudioContextImpl) {
  9. return undefined;
  10. }
  11. return new AudioContextImpl(options);
  12. }