메인 콘텐츠로 건너뛰기
플러그인으로 돌아가기
@capgo/capacitor-mute
튜토리얼
@capgo/capacitor-mute

음소거

iOS 장치의 음소거 switch 상태를 감지하여 오디오 재생을 적절하게 처리하기 위해

Capgo 리포지토리 보기

Capgo npm에서 보기

설명서

Download the Capgo app, then scan the QR code.

Mute 플러그인 미리보기 QR code

@capgo/capacitor-mute 사용

Capacitor mute 플러그인: 장치 음소거 상태 감지

설치

bun add @capgo/capacitor-mute
bunx cap sync

이 플러그인이 제공하는 것

  • isMuted - 장치 음소거 switch가 활성화되어 있는지 확인합니다.

예제 사용

isMuted

장치 음소거 switch가 활성화되어 있는지 확인합니다.

import { Mute } from '@capgo/capacitor-mute';

const { value } = await Mute.isMuted();
if (value) {
  console.log('Device is muted');
} else {
  console.log('Device is not muted');
}

전체 참조

capgo capacitor-mute를 계속 사용하세요.

__CAPGO_KEEP_0__을 사용 중이라면 capgo capacitor-mute를 사용하세요. API __CAPGO_KEEP_1__-mute를 사용하여 대시보드와 API 작업을 계획하고 싶다면, API __CAPGO_KEEP_1__-mute와 연결하세요. capgo capacitor-mute의 구현 세부 사항은 capgo capacitor-mute에서 확인할 수 있습니다. for the implementation detail in @capgo/capacitor-mute, __CAPGO_KEEP_0__ __CAPGO_KEEP_1__-mute의 구현 세부 사항은 시작하기에서 확인할 수 있습니다. __CAPGO_KEEP_0__ 개요 API __CAPGO_KEEP_1__-mute의 구현 세부 사항은 API 개요에서 확인할 수 있습니다. for the implementation detail in API Overview, __CAPGO_KEEP_0__ __CAPGO_KEEP_1__-mute를 사용하여 대시보드와 __CAPGO_KEEP_0__ 작업을 계획하고 싶다면, __CAPGO_KEEP_0__ __CAPGO_KEEP_1__-mute와 연결하세요. Capgo의 구현 세부 정보에 대해 소개에서 API 키 Capgo의 구현 세부 정보에 대해 API 키.