Skip to content

The free and privacy-friendly screen recorder with no limits 🎥

655 B
Raw Blame
export const getStreamingData = async () => {
  try {
    const {
      micActive,
      defaultAudioInput,
      defaultAudioOutput,
      defaultVideoInput,
      systemAudio,
      recordingType,
    } = await chrome.storage.local.get([
      "micActive",
      "defaultAudioInput",
      "defaultAudioOutput",
      "defaultVideoInput",
      "systemAudio",
      "recordingType",
    ]);

    return {
      micActive,
      defaultAudioInput,
      defaultAudioOutput,
      defaultVideoInput,
      systemAudio,
      recordingType,
    };
  } catch (error) {
    console.error("Failed to retrieve streaming data:", error);
    return null;
  }
};